neovim lsp packages and config
This commit is contained in:
parent
073c730b9f
commit
854fbd439e
@ -17,6 +17,9 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
nodePackages.pyright
|
||||||
|
rnix-lsp
|
||||||
|
rust-analyzer
|
||||||
cmake-format
|
cmake-format
|
||||||
clang-tools
|
clang-tools
|
||||||
rustfmt
|
rustfmt
|
||||||
@ -85,6 +88,14 @@
|
|||||||
|
|
||||||
" Enable trimmming of trailing whitespace
|
" Enable trimmming of trailing whitespace
|
||||||
let g:neoformat_basic_format_trim = 1
|
let g:neoformat_basic_format_trim = 1
|
||||||
|
|
||||||
|
" lsp servers
|
||||||
|
lua << EOF
|
||||||
|
require'lspconfig'.pyright.setup{}
|
||||||
|
require'lspconfig'.rust_analyzer.setup{}
|
||||||
|
require'lspconfig'.rnix.setup{}
|
||||||
|
require'lspconfig'.clangd.setup{}
|
||||||
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
@ -103,6 +114,7 @@
|
|||||||
vim-fugitive
|
vim-fugitive
|
||||||
vimtex
|
vimtex
|
||||||
neoformat
|
neoformat
|
||||||
|
nvim-lspconfig
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user