dotfiles/home/modules/tui/neovim/plugins/lsp.nix

55 lines
1.3 KiB
Nix
Raw Normal View History

2024-12-05 03:11:13 +00:00
{
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 = {
2024-12-12 03:11:22 +00:00
ansiblels.enable = true;
# css_variables.enable = true;
docker_compose_language_service.enable = true;
dockerls.enable = true;
eslint.enable = true;
# fish_lsp.enable = true;
# gitlab_ci_ls.enable = true;
gopls.enable = true;
html.enable = true;
# jinja_lsp.enable = true;
jsonls.enable = true;
nixd.enable = true;
# powershell_es.enable = true;
pylsp.enable = true;
# salt_ls.enable = true;
terraformls.enable = true;
yamlls.enable = true;
2024-12-05 03:11:13 +00:00
};
};
};
};
2024-12-12 03:11:22 +00:00
}