From ac112f878cc0575ef43aace2de59878af0f45307 Mon Sep 17 00:00:00 2001 From: allan Date: Fri, 2 May 2025 10:58:07 +0200 Subject: [PATCH] Adding bashls to lsp config --- lua/default/lazy/lsp.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lua/default/lazy/lsp.lua b/lua/default/lazy/lsp.lua index 02459db..a52a4a2 100644 --- a/lua/default/lazy/lsp.lua +++ b/lua/default/lazy/lsp.lua @@ -30,6 +30,7 @@ return { "ansiblels", "terraformls", "pylsp", + "bashls", }, handlers = { function(server_name) -- default handler (optional) @@ -80,6 +81,14 @@ return { }) end, + ["bashls"] = function () + local lspconfig = require("lspconfig") + lspconfig["bashls"].setup({ + cmd = { "bash-language-server", "start" }, + filetypes = { 'bash', 'sh' }, + single_file_support = false, + }) + end, ["lua_ls"] = function() local lspconfig = require("lspconfig") @@ -131,4 +140,4 @@ return { }, }) end -} \ No newline at end of file +}