marleyvim/lua/plugins/conform-nvim.lua

27 lines
520 B
Lua

return {
{
'stevearc/conform.nvim',
---@class ConformOpts
opts = {
formatters_by_ft = {
css = { 'stylelint' },
liquid = { 'prettier' },
nix = { 'alejandra' },
scss = { 'stylelint' },
sh = { 'shellcheck', 'shfmt' },
},
formatters = {
shfmt = {
prepend_args = {
'--indent=2',
'--case-indent',
'--binary-next-line',
'--func-next-line',
},
},
},
},
},
}