Adding bashls to lsp config

This commit is contained in:
allan 2025-05-02 10:58:07 +02:00
parent 7e371697d9
commit ac112f878c

View File

@ -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
}
}