From 39e9b52938307c3123318572f6922b0f8ee07279 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sun, 22 Dec 2024 15:29:09 +0100 Subject: [PATCH] nvim: add more language servers --- home/terminal/nixvim/default.nix | 41 +++++++++++++++++++------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/home/terminal/nixvim/default.nix b/home/terminal/nixvim/default.nix index 85e7779..126f3c8 100644 --- a/home/terminal/nixvim/default.nix +++ b/home/terminal/nixvim/default.nix @@ -3,7 +3,7 @@ imports = [ ./telescope.nix ]; -programs.nixvim = { + programs.nixvim = { colorscheme = "sonokai"; enable = true; extraPlugins = [ @@ -55,24 +55,31 @@ programs.nixvim = { gitsigns.enable = true; # Show git change in first line guess-indent.enable = true; # Guess indent of the file lsp.enable = true; - lsp.servers.pylsp = { - enable = true; - settings.plugins = { - black.enabled = true; - isort.enabled = true; - ruff.enabled = true; - ruff.formatEnabled = false; + 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; + settings.plugins = { + black.enabled = true; + isort.enabled = true; + ruff.enabled = true; + ruff.formatEnabled = false; + }; }; + terraformls = { + enable = true; + rootDir = "require('lspconfig.util').root_pattern('.git', '.terraform')"; + }; + tflint.enable = true; + yamlls.enable = true; }; - lsp.servers.bashls.enable = true; - lsp.servers.gopls.enable = true; - lsp.servers.nixd.enable = true; - lsp.servers.terraformls = { - enable = true; - rootDir = "require('lspconfig.util').root_pattern('.git', '.terraform')"; - }; - lsp.servers.tflint.enable = true; - lsp.servers.yamlls.enable = true; lsp-format.enable = true; # Automatically format on save lsp-lines.enable = true; # Display LSP hints in lines lsp-signature.enable = true; # Show function signature when typing