From 34d1e0ee473d956d05fe86c363b8f1347bfe402b Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 19 Sep 2023 11:58:34 -0400 Subject: [PATCH] feat(nvim): add nix lsp --- nixos/home/nvim.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/home/nvim.nix b/nixos/home/nvim.nix index d16661b..581fbed 100644 --- a/nixos/home/nvim.nix +++ b/nixos/home/nvim.nix @@ -29,7 +29,14 @@ in { ], "sumneko-lua.serverDir": "${pkgs.lua-language-server}/share/lua-language-server", "java.jdt.ls.java.home": "${pkgs.temurin-bin-18}", - "bashIde.shellcheckPath": "${pkgs.shellcheck}/bin/shellcheck" + "bashIde.shellcheckPath": "${pkgs.shellcheck}/bin/shellcheck", + "languageserver": { + "nix": { + "command": "nil", + "filetypes": ["nix"], + "rootPatterns": ["flake.nix"], + } + } } ''; }; @@ -58,6 +65,7 @@ in { bat python311Packages.pylint + nil ]; plugins = with pkgs.vimPlugins; [ vim-which-key