aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform
AgeCommit message (Collapse)Author
2024-08-18refactor: use vim.system instead of jobstart (#521)Lopy
* refactor: use vim.system * fix: use schedule wrap in the result callback * fix: expand the command path * fix: use uv.kill instead of vim.fn.jobclose * test: make tests use vim.fn.exepath * ci: don't run tests on nvim 0.9 * doc: explicitly require Neovim 0.10 * fix: remove jobstart-specific error checks * refactor: rename jid -> pid * fix: spawn shell processes if required * fix: split shell variables * refactor: delete low-value tests * test: add a test for shell formatters * fix: properly build the shell command * refactor: lua implementation for shell_build_argv --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-08-16refactor!: Require Neovim 0.10+Steven Arcangeli
2024-08-16lint: stricter type checkingSteven Arcangeli
2024-08-15fix(sqlfluff): don't assume ansi dialect and require config (#519)Igor Lacerda
2024-08-10fix(docformatter): update exit_codes, 3 is correct in in-place formatting (#518)Zein Alabedeen Barhoum
2024-08-08feat: add variable for args to insert the file extension (#510)Bubbet
* Add support to extensions to arguments. * Fix formatting errors * simplify regex --------- Co-authored-by: Bubbet <bubbet@bubbet.dev>
2024-08-08doc: add additional information about debuggingSteven Arcangeli
2024-08-08fix(djlint): remove default indentation arguments (#517)Hussein Al Abry
Command line arguments for djlint override those in the configuration file.
2024-08-07fix(nixfmt): update repo link and description (#505)Ughur Alakbarov
* feat(formatters): add nixfmt-rfc-style docs: add nixfmt-rfc-style to readme and conform.txt * feat: replace nixfmt with nixfmt-rfc-style * doc: ensure description has period at the end --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2024-08-06feat: add support for cljfmt (#500)Alex
* add support for cljfmt * refactor: use stdin/stdout for formatting * lint: remove unused import --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2024-08-06feat: add support for markdownfmt (#511)sieuwerts
Co-authored-by: Christoffer Pettersson <christoffer.pettersson@schibsted.com>
2024-07-23refactor: trim_whitespace and trim_newlines don't require awkSteven Arcangeli
2024-07-23feat: add sleek, a SQL formatter (#496)Peter Aronoff
2024-07-19cleanup!: drop support for nvim 0.8Steven Arcangeli
2024-07-19lint: remove unused variableSteven Arcangeli
2024-07-19fix: warn user when they are attempting unsupported behaviorSteven Arcangeli
2024-07-19feat: deprecate will_fallback_lsp in favor of list_formatters_to_runSteven Arcangeli
2024-07-19fix: ensure only expected options get passed throughSteven Arcangeli
2024-07-19feat: notify when no formatters available for a bufferSteven Arcangeli
2024-07-19fix: crash in nvim-notifySteven Arcangeli
2024-07-19refactor: deprecate formatter alternation syntaxSteven Arcangeli
2024-07-19feat: format parameter to only run the first available formatterSteven Arcangeli
2024-07-19feat: allow configuring conform.format() args on a per-filetype basisSteven Arcangeli
2024-07-19feat: allow customizing format() defaultsSteven Arcangeli
2024-07-17fix(shfmt): don't pass indentation if .editorconfig is present (#492)Steven Arcangeli
2024-07-16fix: display stdout as error message if stderr is empty (#486)Steven Arcangeli
2024-07-15feat: add undojoin as a format option (#488)Grolaf
* feat: add new format option: undojoin This option allow user to automatically perform undojoin command before formatting. This is useful if the user uses an autosave plugin + format on save, because in case of undo, it will undo the last change AND the formatting. Without this option, it will only undo the formatting. * fix: passed linting * fix: apply undojoin for LSP formatting * doc: fix type annotations for apply_format * doc: regenerate documentation --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-07-15feat: support doctoc (#489)Kevin Nitro
* feat: support doctoc * doc: shorten description --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2024-07-01feat(shfmt): add automatic indentation detection (#481)Micah Halter
* feat(shfmt): automatically detect indentation * fix(markdown-toc): improve correctness of indentation size calculation * fix(djlint): improve correctness of indentation size calculation * feat: add effective `shiftwidth` to `conform.Context` this also refactors formatters that automatically set indentation level to use the new shiftwidth context
2024-07-01feat: add Swiftlint formatter (#484)Jake Langford
* adds swiftlint formatter * update readme with link to swiftlint
2024-07-01fix(biome-check): use --write instead of deprecated --apply (#482)Ismail Ait Bella
2024-06-24fix(npm-groovy-lint): ignore exit code 1 (#477)Steven Arcangeli
2024-06-24feat(djlint): use tabstop to set indentation (#467)mangkoran
Formatter now able to use local buffer tabstop config. One of the case is when the tabstop is set by editorconfig. Close #457
2024-06-24feat: support imba fmt (#475)Mads Hougesen
2024-06-24feat: support grain format (#474)Mads Hougesen
* feat: support grain format * fix: formatting -> formatter * refactor(grain): format with stdin/stdout --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2024-06-24feat: support docformatter (#472)Mads Hougesen
2024-06-24feat: support dcm fix and dcm format (#471)Mads Hougesen
2024-06-24feat: support nickel format (#476)Mads Hougesen
2024-06-24feat: support gluon fmt (#473)Mads Hougesen
2024-06-24feat: support crlfmt (#470)Mads Hougesen
2024-06-24feat: add support for caramel fmt (#469)Mads Hougesen
2024-06-24feat: support brighterscript-formatter (#468)Mads Hougesen
2024-06-19doc: add LSP annotations for `lsp_format` options (#461)Micah Halter
* doc: add LSP annotations for `lsp_format` options * doc: regenerate documentation --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-06-19fix: LSP fallback behavior when formatters not availbleSteven Arcangeli
The bug would present itself when there were formatters configured for a filetype that were not available (not installed, or some other issue). This would also happen if the filetype configured an empty list of formatters. The fix was to make sure that we fall back to LSP formatting _either_ if the filetype had no formatters configured, _or_ if none of the configured formatters are available.
2024-06-17doc: format_on_save/format_after_save can return nilSteven Arcangeli
2024-06-17feat!: expand options for LSP formatting (#456)Steven Arcangeli
2024-06-15fix: deprecate typstfmt formatter (#458)Steven Arcangeli
2024-06-10feat: formatter override can use (#453)Steven Arcangeli
2024-06-09feat: add support for for vsg (#451)Fredrik Foss-Indrehus
* feat: add support for vsg * support more config files, use ctx.dirname
2024-06-08feat(latex): support llf (#446)Eirik Rolland Enger
* feat(latex): support llf Signed-off-by: engeir <engeir@pm.me> * Update llf.lua --------- Signed-off-by: engeir <engeir@pm.me> Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>