nvim: add more language servers

This commit is contained in:
Johannes Rothe 2024-12-22 15:29:09 +01:00
parent d79368ff44
commit 39e9b52938

View File

@ -55,7 +55,16 @@ programs.nixvim = {
gitsigns.enable = true; # Show git change in first line gitsigns.enable = true; # Show git change in first line
guess-indent.enable = true; # Guess indent of the file guess-indent.enable = true; # Guess indent of the file
lsp.enable = true; lsp.enable = true;
lsp.servers.pylsp = { lsp.servers = {
bashls.enable = true;
dockerls.enable = true;
gitlab_ci_ls.enable = true;
gitlab_ci_ls.package = pkgs.gitlab-ci-ls;
gopls.enable = true;
helm_ls.enable = true;
jsonls.enable = true;
nixd.enable = true;
pylsp = {
enable = true; enable = true;
settings.plugins = { settings.plugins = {
black.enabled = true; black.enabled = true;
@ -64,15 +73,13 @@ programs.nixvim = {
ruff.formatEnabled = false; ruff.formatEnabled = false;
}; };
}; };
lsp.servers.bashls.enable = true; terraformls = {
lsp.servers.gopls.enable = true;
lsp.servers.nixd.enable = true;
lsp.servers.terraformls = {
enable = true; enable = true;
rootDir = "require('lspconfig.util').root_pattern('.git', '.terraform')"; rootDir = "require('lspconfig.util').root_pattern('.git', '.terraform')";
}; };
lsp.servers.tflint.enable = true; tflint.enable = true;
lsp.servers.yamlls.enable = true; yamlls.enable = true;
};
lsp-format.enable = true; # Automatically format on save lsp-format.enable = true; # Automatically format on save
lsp-lines.enable = true; # Display LSP hints in lines lsp-lines.enable = true; # Display LSP hints in lines
lsp-signature.enable = true; # Show function signature when typing lsp-signature.enable = true; # Show function signature when typing