Adds shfmt as formatter for sh and forces 2 space intend with switch_case_indent and binary_next_line options.
This commit is contained in:
parent
1596889836
commit
f4b53881cc
6
init.lua
6
init.lua
|
|
@ -760,12 +760,18 @@ require('lazy').setup({
|
|||
json = { 'prettierd' },
|
||||
css = { 'prettierd' },
|
||||
yaml = { 'prettierd' },
|
||||
sh = { 'shfmt' },
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
-- python = { "isort", "black" },
|
||||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
},
|
||||
formatters = {
|
||||
shfmt = {
|
||||
prepend_args = { '-i', '2', '-ci', '-bn' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue