1
0
Fork 0
mirror of https://github.com/jbowdre/dotfiles.git synced 2024-12-24 13:12:18 +00:00
dotfiles/home/modules/tui/neovim/plugins/lsp.nix
2024-12-04 21:11:13 -06:00

38 lines
No EOL
716 B
Nix

{
programs.nixvim = {
plugins = {
lsp-format = {
enable = true;
lspServersToEnable = "all";
};
lsp = {
enable = true;
inlayHints = true;
keymaps = {
silent = true;
diagnostic = {
# navigate in diagnostics
"<leader>k" = "goto_prev";
"<leader>j" = "goto_next";
};
lspBuf = {
gd = "definition";
gD = "references";
gt = "type_definition";
gi = "implementation";
K = "hover";
"<F2>" = "rename";
};
};
servers = {
clangd.enable = true;
};
};
};
};
}