Add home/modules/nvim/config/lua/plugins/conform.nvim
This commit is contained in:
parent
cf2dbe03e3
commit
ec8f771d3d
1 changed files with 26 additions and 0 deletions
26
home/modules/nvim/config/lua/plugins/conform.nvim
Normal file
26
home/modules/nvim/config/lua/plugins/conform.nvim
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
"stevearc/conform.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
},
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
typescriptreact = { "prettierd" },
|
||||
typescript = { "prettierd" },
|
||||
javascript = { "prettierd" },
|
||||
javascriptreact = { "prettierd" },
|
||||
html = { "prettierd" },
|
||||
css = { "prettierd" },
|
||||
yaml = { "prettierd" },
|
||||
markdown = { "prettierd" },
|
||||
json = { "prettierd" },
|
||||
lua = { "stylua" },
|
||||
},
|
||||
format_on_save = {
|
||||
-- These options will be passed to conform.format()
|
||||
timeout_ms = 300,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue