From dee90d9a9654b259865f26e6254b9ae7aacd76c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 15 Sep 2024 22:34:10 +0200 Subject: [PATCH] vim: Another nix lsp Might be a tad too powerful for its own good, let's see --- hm/dev/common.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/hm/dev/common.nix b/hm/dev/common.nix index b4d162a..f0e4628 100644 --- a/hm/dev/common.nix +++ b/hm/dev/common.nix @@ -22,6 +22,7 @@ # nix lix + nixpkgs-fmt # Always on (graphical) ] ++ lib.optionals config.frogeye.desktop.xorg [ @@ -62,9 +63,16 @@ lua-ls.enable = true; # Lua (for Neovim debugging) perlpls.enable = config.frogeye.dev.perl; # Perl phpactor.enable = config.frogeye.dev.php; # PHP - nixd = { + # Nix + nil-ls = { enable = true; - settings.formatting.command = [ "nixpkgs-fmt" ]; + settings = { + formatting.command = [ "nixpkgs-fmt" ]; + nix.flake = { + autoArchive = true; + autoEvalInputs = true; + }; + }; }; # TODO Something for SQL. sqls is deprecated, sqlls is not in Nixpkgs. Probably needs a DB connection configured anyways? yamlls.enable = true; # YAML