Fix shell linter/formatter

This commit is contained in:
2023-10-01 17:19:36 +02:00
parent 88288fe1f5
commit 2cfb66c992
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -24,7 +24,6 @@ return {
"sh", "sh",
}, },
cmd = { "bash-language-server", "start", }, cmd = { "bash-language-server", "start", },
cmd_env = { GLOB_PATTERN = "*@(.sh|.inc|.bash|.command)", },
single_file_support = true, single_file_support = true,
}, },
} }
+4
View File
@@ -29,6 +29,8 @@ return {
filetypes = { filetypes = {
"python", "python",
"sh", "sh",
"bash",
"zsh",
"php", "php",
}, },
cmd = { "diagnostic-languageserver", "--stdio", }, cmd = { "diagnostic-languageserver", "--stdio", },
@@ -122,6 +124,8 @@ return {
formatFiletypes = { formatFiletypes = {
python = { "black", "isort", }, python = { "black", "isort", },
sh = { "shfmt", }, sh = { "shfmt", },
bash = { "shfmt", },
zsh = { "shfmt", },
}, },
formatters = { formatters = {
black = { black = {