adapted neovim

This commit is contained in:
2025-10-05 01:41:44 +03:00
parent 45f0f3cdc2
commit b7be9daa99
5 changed files with 64 additions and 15 deletions

View File

@@ -29,6 +29,7 @@ return { -- Autoformat
end,
formatters_by_ft = {
lua = { "stylua" },
sh = { "shfmt" },
swift = { "swift_format" },
python = { "isort", "black", stop_after_first = true },
javascript = { "prettierd", "prettier", stop_after_first = true },
@@ -36,5 +37,10 @@ return { -- Autoformat
typescript = { "prettierd", "prettier", stop_after_first = true },
typescriptreact = { "prettierd", "prettier", stop_after_first = true },
},
formatters = {
shfmt = {
prepend_args = { "-i", "4", "-ci" }, -- 4 spaces, indent cases
},
},
},
}