mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-19 03:02:17 +00:00
38 lines
No EOL
716 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |