🔧 Major overhaul of nvim config

This commit is contained in:
z3rOR0ne 2025-03-28 18:57:42 -07:00
parent 351ce052a7
commit 5e7afd99ec
38 changed files with 1091 additions and 87 deletions

View file

@ -0,0 +1,27 @@
require("conform").setup({
formatters_by_ft = {
python = { "isort", "black" },
lua = { "stylua" },
css = { "prettierd" },
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
javascriptreact = { "prettierd", "prettier", stop_after_first = true },
typescriptreact = { "prettierd", "prettier", stop_after_first = true },
html = { "prettierd", "prettier", stop_after_first = true },
pug = { "prettierd", "prettier", stop_after_first = true },
vue = { "prettierd", "prettier", stop_after_first = true },
sql = { "sql_formatter" },
rust = { "rustfmt" },
golang = { "gofmt" },
sh = { "shfmt" },
json = { "jq", "deno_fmt", stop_after_first = true },
toml = { "taplo" },
yaml = { "yq" },
markdown = { "deno_fmt" },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
})