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 ]; }; }