mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: move plugins to an upper level
This commit is contained in:
parent
9569774c7b
commit
99bcb4ca97
50 changed files with 69 additions and 69 deletions
38
lua/plugins/format.lua
Normal file
38
lua/plugins/format.lua
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue