{ imports = [./servers.nix ./lint.nix]; programs.nixvim = { plugins = { lspkind = import ./lspkind.nix; lspconfig.enable = true; trouble.enable = true; }; keymaps = let trouble-lsp = key: action: { mode = ""; inherit key; options.desc = action; action = "Trouble lsp_${action}"; }; in [ { mode = ""; key = "K"; options.desc = "Hover"; action = "Lspsaga hover_doc"; } (trouble-lsp "gd" "definitions") (trouble-lsp "gr" "references") (trouble-lsp "gi" "implementations") ]; }; }