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
|
||||
./vimtex.nix
|
||||
./nonels.nix
|
||||
./conform.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
|
||||
@@ -23,11 +23,9 @@
|
||||
};
|
||||
|
||||
# Language server
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
# Average webdev LSPs
|
||||
tsserver.enable = true; # TS/JS
|
||||
tsserver.enable = false; # TS/JS
|
||||
cssls.enable = true; # CSS
|
||||
tailwindcss.enable = true; # TailwindCSS
|
||||
html.enable = true; # HTML
|
||||
@@ -79,5 +77,4 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user