refactor: redid neovim config

This commit is contained in:
2025-01-23 07:46:05 +00:00
parent 85a46854fe
commit fbffcffe21
16 changed files with 132 additions and 251 deletions

View File

@@ -0,0 +1,20 @@
return {
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
lua = { "stylua" },
rust = { "rustfmt", lsp_format = "fallback" },
javascript = { "prettier" },
typescript = { "prettier" },
json = { "prettier" },
tsx = { "prettier" },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
},
},
}