feat: update ls configs

This commit is contained in:
2024-06-12 09:06:56 +02:00
parent b404648928
commit ee7cfb9410
7 changed files with 255 additions and 119 deletions
+16
View File
@@ -1,3 +1,5 @@
local utils = require("utils")
return {
enable = true,
dependencies = {
@@ -7,6 +9,20 @@ return {
name = "bash-language-server",
dependencies = {
{ name = "shellcheck", },
{ name = "shfmt", },
},
},
keymaps = {
{
mode = "n",
lhs = "<leader>lf",
rhs = function()
utils.format({
cmd = { "shfmt", "-s", "-i", "4", "-" },
stdin = true,
stdout = true,
})
end,
},
},
lspconfig = {