2024-12-23 21:28:09 +00:00
|
|
|
{ pkgs, ... }: {
|
2024-12-05 03:11:13 +00:00
|
|
|
programs.nixvim = {
|
2024-12-23 21:28:09 +00:00
|
|
|
withNodeJs = true;
|
2024-12-05 03:11:13 +00:00
|
|
|
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;
|
2024-12-26 21:46:33 +00:00
|
|
|
bashls.enable = true;
|
2024-12-23 21:28:09 +00:00
|
|
|
cssls.enable = true;
|
2024-12-12 03:11:22 +00:00
|
|
|
docker_compose_language_service.enable = true;
|
|
|
|
dockerls.enable = true;
|
|
|
|
eslint.enable = true;
|
2024-12-23 21:28:09 +00:00
|
|
|
fish_lsp = {
|
|
|
|
enable = true;
|
|
|
|
package = "${pkgs.fish-lsp}";
|
|
|
|
};
|
|
|
|
gitlab_ci_ls = {
|
|
|
|
enable = true;
|
|
|
|
package = "${pkgs.gitlab-ci-ls}";
|
|
|
|
};
|
2024-12-12 03:11:22 +00:00
|
|
|
gopls.enable = true;
|
|
|
|
html.enable = true;
|
2024-12-28 22:22:53 +00:00
|
|
|
jinja_lsp = {
|
|
|
|
enable = true;
|
|
|
|
package = "${pkgs.vimPlugins.vim-jinja}";
|
|
|
|
};
|
2024-12-12 03:11:22 +00:00
|
|
|
jsonls.enable = true;
|
|
|
|
nixd.enable = true;
|
|
|
|
pylsp.enable = true;
|
|
|
|
terraformls.enable = true;
|
2025-01-03 20:25:36 +00:00
|
|
|
yamlls = {
|
|
|
|
enable = true;
|
|
|
|
settings = { customTags = [ "!reference sequence" ]; };
|
|
|
|
};
|
2024-12-05 03:11:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-12-12 03:11:22 +00:00
|
|
|
}
|