From 854fbd439e4dc5107b3dccefd4744b14505394bb Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 8 Dec 2021 15:20:36 +0000 Subject: [PATCH] neovim lsp packages and config --- roles/home/common.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/home/common.nix b/roles/home/common.nix index 6ffe2c9..6d56b61 100644 --- a/roles/home/common.nix +++ b/roles/home/common.nix @@ -17,6 +17,9 @@ enable = true; extraPackages = with pkgs; [ nodePackages.prettier + nodePackages.pyright + rnix-lsp + rust-analyzer cmake-format clang-tools rustfmt @@ -85,6 +88,14 @@ " Enable trimmming of trailing whitespace 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; @@ -103,6 +114,7 @@ vim-fugitive vimtex neoformat + nvim-lspconfig ]; }; }