{ imports = [./servers.nix ./lint.nix ./otter.nix]; programs.nixvim = { plugins = { lspkind = import ./lspkind.nix; lspconfig.enable = true; trouble.enable = true; tiny-inline-diagnostic = { enable = true; settings.options.multilines.enabled = 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") ]; }; }