aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/health.lua
AgeCommit message (Collapse)Author
2023-09-15fix: `q` keymap in ConformInfo and `codespell` exit codes (#53)pseudometa
* fix: `codespell` error when trying to fix ambiguous misspelling * fix: delay when having a keymap with `q` as operator
2023-09-14fix: use non-deprecated health report functions if available (#48)Maria José Solano
2023-09-08feat: syntax for using first available formatterSteven Arcangeli
Alternations are now supported. You can specify a sub-list in place of a formatter name and conform will use the first formatter in that list that is available. For example, this will use either prettierd or prettier (whichever is available), and then always trim whitespace afterwards: conform.format(formatters = { { "prettierd", "prettier" }, "trim_whitespace" }) This syntax is available both in the formatters_by_ft config option and in the `formatters` argument of the `format` method.
2023-08-30feat: apply changes as text edits using LSP utils (#18)Steven Arcangeli
* feat: apply changes as text edits using LSP utils This means we can leverage all of the work that was done in the LSP client to preserve marks, cursor position, etc * log: add trace logging to debug performance * feat: use the same diff -> TextEdit technique for bad LSP servers Some LSP servers simply return a single TextEdit that replaces the whole buffer. This is bad for extmarks, cursor, and if the buffer is open in multiple windows the non-active window will jump to the top. We can detect that situation and apply the same vim.diff logic to convert it into more granular TextEdits.
2023-08-29feat: display last few lines of the log file in :ConformInfoSteven Arcangeli
2023-08-28feat: ConformInfo command for debugging formatter statusSteven Arcangeli
2023-08-25feat: first working versionSteven Arcangeli