Fix shell linter/formatter
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user