chore: move plugins to an upper level

This commit is contained in:
Mariano Z. 2024-12-22 12:16:36 -03:00
parent 9569774c7b
commit 99bcb4ca97
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
50 changed files with 69 additions and 69 deletions

38
lua/plugins/format.lua Normal file
View file

@ -0,0 +1,38 @@
return {
"stevearc/conform.nvim",
event = {
"BufReadPre",
"BufNewFile",
},
config = function()
require("conform").setup({
formatters_by_ft = {
graphql = { "prettierd", "prettier" },
njk = { "prettierd", "prettier" },
html = { "prettierd", "prettier" },
typescript = { "prettierd", "prettier" },
lua = { "stylua" },
javascript = { "prettierd", "prettier", stop_after_first = true },
json = { "prettierd", "prettier" },
sh = { "shfmt" },
bash = { "shfmt" },
tex = { "latexindent" },
go = { "gofumpt", "goimports-reviser", "golines" },
cs = { "csharpier" },
templ = { "templ" },
},
formatters = {
csharpier = {
command = "dotnet-csharpier",
args = { "--write-stdout" },
},
},
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
async = false,
},
notify_on_error = false,
})
end,
}