From 68ecd9b39d5559f3c11b7e1f61c7c8c93562428b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 13 Mar 2023 09:07:50 +0100 Subject: [PATCH] feat(nvim): add bash language server --- modules/programs/nvim/default.nix | 2 ++ modules/programs/nvim/init.lua | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/programs/nvim/default.nix b/modules/programs/nvim/default.nix index 36c17cb..f971062 100644 --- a/modules/programs/nvim/default.nix +++ b/modules/programs/nvim/default.nix @@ -44,7 +44,9 @@ in jq nil nixpkgs-fmt + nodePackages.bash-language-server rustfmt + shellcheck shfmt stylua sumneko-lua-language-server diff --git a/modules/programs/nvim/init.lua b/modules/programs/nvim/init.lua index a54a15a..3a9ce13 100644 --- a/modules/programs/nvim/init.lua +++ b/modules/programs/nvim/init.lua @@ -271,7 +271,13 @@ local function lspconfig_setup(lsp, options) lspconfig[lsp].setup(final_options) end -local servers = { "nil_ls", "pylsp", "rust_analyzer", "ruff_lsp" } +local servers = { + "bashls", + "nil_ls", + "pylsp", + "ruff_lsp", + "rust_analyzer", +} for _, lsp in ipairs(servers) do lspconfig_setup(lsp, {}) end