home: vim: null-ls: restrict POSIX to bare 'sh'
This commit is contained in:
parent
0b64c9caa7
commit
102dc4cc76
|
@ -116,6 +116,8 @@ null_ls.register({
|
||||||
-- Indent with 4 spaces, simplify the code, indent switch cases,
|
-- Indent with 4 spaces, simplify the code, indent switch cases,
|
||||||
-- add space after redirection, use POSIX
|
-- add space after redirection, use POSIX
|
||||||
extra_args = { "-i", "4", "-s", "-ci", "-sr", "-ln", "posix" },
|
extra_args = { "-i", "4", "-s", "-ci", "-sr", "-ln", "posix" },
|
||||||
|
-- Restrict to POSIX sh
|
||||||
|
filetypes = { "sh" },
|
||||||
-- Only used if available
|
-- Only used if available
|
||||||
condition = utils.is_executable_condition("shfmt"),
|
condition = utils.is_executable_condition("shfmt"),
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue