update formatters
This commit is contained in:
parent
1c1b6365ef
commit
1766e84f5d
1 changed files with 3 additions and 6 deletions
|
|
@ -3,13 +3,11 @@ return {
|
||||||
event = { "BufWritePre" },
|
event = { "BufWritePre" },
|
||||||
cmd = { "ConformInfo" },
|
cmd = { "ConformInfo" },
|
||||||
opts = {
|
opts = {
|
||||||
-- log_level = vim.log.levels.DEBUG,
|
-- See available formatters in: https://github.com/stevearc/conform.nvim#formatters
|
||||||
|
|
||||||
-- See aviable formatters in: https://github.com/stevearc/conform.nvim#formatters
|
|
||||||
-- Formatters can be installed by mason
|
-- Formatters can be installed by mason
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
-- Conform will run multiple formatters sequentially
|
-- Conform will run multiple formatters sequentially
|
||||||
-- Use a stop_after_first = true to run only the first available formatter
|
-- Use a stop_after_first = true to run only the first available formatters
|
||||||
-- Use the "_" filetype to run formatters on filetypes that don't
|
-- Use the "_" filetype to run formatters on filetypes that don't
|
||||||
-- have other formatters configured.
|
-- have other formatters configured.
|
||||||
["_"] = { "trim_whitespace" },
|
["_"] = { "trim_whitespace" },
|
||||||
|
|
@ -24,10 +22,9 @@ return {
|
||||||
jsonc = { "biome" },
|
jsonc = { "biome" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
markdown = { "markdownlint" },
|
markdown = { "markdownlint" },
|
||||||
nim = { "nimpretty" },
|
|
||||||
php = { "pint" },
|
php = { "pint" },
|
||||||
python = { "ruff_format", "ruff_organize_imports" },
|
python = { "ruff_format", "ruff_organize_imports" },
|
||||||
scss = { "prettierd", "prettier", stop_after_first = true },
|
scss = { "biome", "prettierd", "prettier", stop_after_first = true },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
toml = { "taplo" },
|
toml = { "taplo" },
|
||||||
typescript = { "biome" },
|
typescript = { "biome" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue