🔧 Replaced neoformat with conform

This commit is contained in:
z3rOR0ne 2024-08-12 14:44:59 -07:00
parent 3a26aa2223
commit 9a24426c01
5 changed files with 25 additions and 13 deletions

View file

@ -0,0 +1,17 @@
require("conform").setup({
formatters_by_ft = {
python = { "isort" },
lua = { "stylua" },
css = { "stylelint" },
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
html = { "prettierd", "prettier", stop_after_first = true },
sql = { "sql_formatter" },
sh = { "shfmt" },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
})

View file

@ -1 +0,0 @@
vim.cmd([[let g:shfmt_opt="-ci"]])