🔧 Replaced neoformat with conform
This commit is contained in:
parent
3a26aa2223
commit
9a24426c01
5 changed files with 25 additions and 13 deletions
17
.config/nvim/after/plugin/conform.lua
Normal file
17
.config/nvim/after/plugin/conform.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
python = { "isort" },
|
||||
lua = { "stylua" },
|
||||
css = { "stylelint" },
|
||||
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
typescript = { "prettierd", "prettier", stop_after_first = true },
|
||||
html = { "prettierd", "prettier", stop_after_first = true },
|
||||
sql = { "sql_formatter" },
|
||||
sh = { "shfmt" },
|
||||
},
|
||||
format_on_save = {
|
||||
-- These options will be passed to conform.format()
|
||||
timeout_ms = 500,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue