Skip to content

Commit ddd4f4a

Browse files
committed
feat: add docs to conform nvim
1 parent 301bab3 commit ddd4f4a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • chezmoi/dot_config/nvim/lua/plugins

chezmoi/dot_config/nvim/lua/plugins/lsp.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,22 @@ return {
6868
"stevearc/conform.nvim",
6969
optional = true,
7070
opts = {
71-
-- Conform will run the first available formatter
72-
-- Conform will run multiple formatters sequentially
71+
-- Conform will execute the first available formatter, followed by the next ones sequentially.
72+
-- If multiple formatters are defined and available, each will run in order without any visible transition.
73+
-- For example, if the first formatter sets indentation to 2 and the second sets it to 6,
74+
-- the final result will have an indentation of 6 — you won’t see the intermediate state of 2-space indentation.
75+
-- Syntax : language = { "<first_formatter>", "second_formatter" }
7376
formatters_by_ft = { -- https://github.com/stevearc/conform.nvim?tab=readme-ov-file#setup
7477
nix = { "nixfmt" },
7578
lua = { "stylua" },
7679
python = { "ruff" },
7780
rust = { "rustfmt" },
78-
go = { "goimports", "gofmt" },
81+
go = { "gofmt" },
7982
javascript = { "biome", "biome-organize-imports", "prettier" },
8083
javascriptreact = { "biome", "biome-organize-imports", "prettier" },
8184
typescript = { "biome", "biome-organize-imports", "prettier" },
8285
typescriptreact = { "biome", "biome-organize-imports", "prettier" },
83-
yaml = { "yamlfmt", "prettier" }, -- Using custom formatters, because yamlfmt default with mason bug with indentation that set in .yamlfmt in root of working directory
86+
yaml = { "yamlfmt" }, -- Using custom formatters, because yamlfmt default with mason bug with indentation that set in .yamlfmt in root of working directory
8487
toml = { "taplo_fmt" }, -- Using custom formatters, to prevent use default config for taplo in conform that can causing bug
8588
-- toml = { "taplo" }, -- Bug when using with default `taplo`, [[rule]] array are ignored when using format on save
8689
-- Use the "*" filetype to run formatters on all filetypes.

0 commit comments

Comments
 (0)