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", "ansiblels",
"terraformls", "terraformls",
"pylsp", "pylsp",
"bashls",
}, },
handlers = { handlers = {
function(server_name) -- default handler (optional) function(server_name) -- default handler (optional)
@ -80,6 +81,14 @@ return {
}) })
end, 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() ["lua_ls"] = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")