feat(lsp): add nix lsp, install lsp servers

This commit is contained in:
buffet 2023-01-25 13:05:53 +01:00
parent af7517c34e
commit 266ada0e90

View file

@ -8,6 +8,12 @@
EDITOR = "nvim"; EDITOR = "nvim";
}; };
home.packages = with pkgs; [
libclang
nil
rust-analyzer
];
programs.neovim = let programs.neovim = let
leader = ","; leader = ",";
in { in {
@ -365,6 +371,7 @@
servers = [ servers = [
"clangd" "clangd"
"gopls" "gopls"
"nil_ls"
"rust_analyzer" "rust_analyzer"
]; ];
serverConfigs = lib.strings.concatStringsSep "\n" (builtins.map configure servers); serverConfigs = lib.strings.concatStringsSep "\n" (builtins.map configure servers);