testing nixvim 5
This commit is contained in:
24
home/extra/neovim/plugins/conform.nix
Normal file
24
home/extra/neovim/plugins/conform.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
plugins.conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
formatOnSave = {
|
||||||
|
lspFallback = true;
|
||||||
|
timeoutMs = 500;
|
||||||
|
};
|
||||||
|
notifyOnError = true;
|
||||||
|
formattersByFt = {
|
||||||
|
liquidsoap = [ "liquidsoap-prettier" ];
|
||||||
|
html = [ [ "prettierd" "prettier" ] ];
|
||||||
|
css = [ [ "prettierd" "prettier" ] ];
|
||||||
|
javascript = [ [ "prettierd" "prettier" ] ];
|
||||||
|
javascriptreact = [ [ "prettierd" "prettier" ] ];
|
||||||
|
typescript = [ [ "prettierd" "prettier" ] ];
|
||||||
|
typescriptreact = [ [ "prettierd" "prettier" ] ];
|
||||||
|
python = [ "black" ];
|
||||||
|
lua = [ "stylua" ];
|
||||||
|
nix = [ "alejandra" ];
|
||||||
|
markdown = [ [ "prettierd" "prettier" ] ];
|
||||||
|
yaml = [ "yamllint" "yamlfmt" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
./treesitter.nix
|
./treesitter.nix
|
||||||
./vimtex.nix
|
./vimtex.nix
|
||||||
./nonels.nix
|
./nonels.nix
|
||||||
|
./conform.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
|
|||||||
@@ -23,11 +23,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Language server
|
# Language server
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
servers = {
|
||||||
# Average webdev LSPs
|
# Average webdev LSPs
|
||||||
tsserver.enable = true; # TS/JS
|
tsserver.enable = false; # TS/JS
|
||||||
cssls.enable = true; # CSS
|
cssls.enable = true; # CSS
|
||||||
tailwindcss.enable = true; # TailwindCSS
|
tailwindcss.enable = true; # TailwindCSS
|
||||||
html.enable = true; # HTML
|
html.enable = true; # HTML
|
||||||
@@ -79,5 +77,4 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user