aboutsummaryrefslogtreecommitdiffstats
path: root/lua
AgeCommit message (Collapse)Author
2024-03-01feat(formatter): add liquidsoap-prettier (#312)gwen
2024-02-29feat: add OpenTofu formatter (#313)Hussein Al Abry
2024-02-22feat: add formatter sqlfmt (#307)Mattias Sjödin
2024-02-21feat: add `gersemi` formatter (#305)karei
* Add `formatters/gersemi.lua` * Add `gersemi` to README.md
2024-02-20feat: add twig-cs-fixer (#304)Frederik Buchlák
2024-02-19feat: add fantomas formatter (#302)Jinjun Liang
* feat: add fantomas formatter * fantomas: + args * fantomas: + stdin = false
2024-02-12feat: add ReScript formatter (#293)Angelo Fallaria
2024-02-02feat: Add reorder-python-imports formatter (#284)pmav99
2024-02-02feat: add awk formatter (#286)Trevor Arjeski
Add formatter for awk programs. Surprise! It's awk!
2024-02-02feat: add biome-check formatter (#287)Andrew Kogut
`biome` formatter uses `biome format` command which applies formatting but doesn't apply lint autofixes. Couldn't find a better way then to create another formatter that uses `biome check", --apply-unsafe`
2024-02-02feat: add yq formatter (#288)Frederik Buchlák
2024-01-28fix: `swift_format` doesn't respect `.swift-format` file (#283)Hao Song
`swift-format` won't pick up `.swift-format` config file in stdin mode. We need to set `stdin = false` and `--in-place` to make it work with `conform.nvim`. [apple/swift-format/README.md](https://github.com/apple/swift-format/blob/e312ede68bd8549381f9e2edfef7e6c176e9a50e/README.md#L129-L131) > * `-i/--in-place`: Overwrites the input files when formatting instead of printing the results to standard output. _No backup of the original file is made before it is overwritten._ Fix https://github.com/stevearc/conform.nvim/issues/211
2024-01-28fix: set a cwd for biome (#282)Azzam S.A
2024-01-24feat: add terragrunt_hclfmt formatter (#278)Zoltán Reegn
2024-01-21fix: handle windows line endings (#274)Steven Arcangeli
2024-01-15feat: Add dry_run option and report if buffer was/would be changed by ↵Bronson Jordan
formatters (#273) * feat: add dry_run option and pass return values for if buffer would be modified * fix: implement dry_run for blocking calls to lsp formatter * refactor: change `changed` variable to `did_edit` * docs: Update README * fix: address PR comments * fix: small cleanups --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-01-08fix: LSP deprecated method warning on nvim nightlySteven Arcangeli
2024-01-08fix: injected formatter works on nightly (#270)Steven Arcangeli
2024-01-08feat(formatexpr): don't require LSP range formatting if operating on whole ↵Nuno David
file (#272) solves: https://github.com/stevearc/conform.nvim/issues/271
2024-01-06fix: copy input parameters for will_fallback_lspSteven Arcangeli
2024-01-06fix: pass explicit bufnr to avoid race conditions (#260)Steven Arcangeli
2024-01-06feat: add opa_fmt formatter (#267)Hoang Nguyen
2024-01-05feat: add cue_fmt formatter (#265)Hoang Nguyen
2024-01-05fix: set a cwd for djlint (#264)Azzam S.A
2024-01-05fix: set a cwd for dprint (#263)Azzam S.A
2024-01-02Fix(black): formatting excluded files results in blank buffer (#254)Eric Bartels
* Fix(black): formatting excluded files results in blank buffer (#249) * Fixed stylua formatting * Fixed more stylua formatting * Log buffer name and change from trace to warning * Test fix: set_formatter_output funtion was moved out of test_util * Avoid blank output triggering errors in fuzzer tests
2024-01-02feat: add xmllint formatter (#259)chefe
* feat: add xmllint formatter * doc: shorten xmllint description --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2023-12-26docs: autogenerate formatter options docs (#234)Steven Arcangeli
2023-12-26refactor(injected): use included_regions instead of private methods (#253)Steven Arcangeli
2023-12-26fix(injected): code block at end of markdown fileSteven Arcangeli
2023-12-26fix(injected): handle inline injections (#251)Steven Arcangeli
2023-12-24fix(prettier): use correct prettier executable on windows (#236)Steven Arcangeli
2023-12-23fix: crash in error handlingSteven Arcangeli
2023-12-11feat: add fnlfmt formatter (#247)Marcin Puc
2023-12-11fix(rubocop): pass --server for faster execution (#246)Paweł Gościcki
This ensures a much quicker execution on 2nd and any subsequent run. Otherwise there's always a 1-3 seconds delay before formatting is being applied (as rubocop is not that quick). From rubocop's documentation: ``` --server If a server process has not been started yet, start the server process and execute inspection with server. ```
2023-12-10feat: ConformInfo shows path to executable (#244)agoodshort
2023-12-09feat(prettier): add `options` for configuring prettier parser based on ↵Micah Halter
filetype and extension (#241)
2023-12-07fix(formatexpr): does not fallback to the built-in formatexpr (#238)Jongwook Choi
This makes the behavior of formatexpr more consistent with `vim.lsp.formatexpr`; do not run vim's builtin formatter. Problem: When conform's formatexpr is used and (range or buffer) but conform can't do formatting and there is no LSP formatter with the formatting capabilities, it will fall back to the (wrong) built-in formatting, which might result in simply concatenating all the words. This is a breaking change, reverting the behavior introduced in #55.
2023-12-07feat: add joker for clojure formatting (#240)Zoltán Reegn
2023-12-07feat: add asmfmt (#239)Xun
2023-12-06refactor!: formatter config functions take self as first argument (#233)Steven Arcangeli
This is a breaking API change, but there is a shim in place that will keep existing functions working, just with a warning notification. Most people should not encounter this at all. For anyone overriding a formatter config value with a function that takes `(ctx)` as the parameter, it will need to be updated to take `(self, ctx)`.
2023-12-06fix: various fixes for the `injected` formatter (#235)Micah Halter
* fix: load temp buffer once created to load the context for formatters * fix: use `_injection_query` to decide if the `injection` formatter is valid
2023-12-04feat: add jsonnetfmt (#230)Daniel
* feat: add jsonnetfmt * fix: use stdin * docs: adjust name * docs: adjust url
2023-12-03fix(biome): use binary from node_modules (#226)Francesco Pasqua
* chore: remove $FILENAME from standardjs config * fix(biome): use first local executable over global
2023-12-03feat: add autocorrect (#223)z775729168
2023-12-01fix: invalid prettier configuration in last commitSteven Arcangeli
2023-11-29ci: workflow automationSteven Arcangeli
2023-11-27fix(biome): perform formatting over stdin (#220)pseudometa
With the release of v1.4.0, biome now supports the arguments needed for formatting via stdin/stdout. If you are using an older version of biome, you can override the formatter configuration to use the previous settings.
2023-11-27feat: add support for sqlfluff (#213)Frederik Buchlák
2023-11-27fix: respect excluded-files-config from `typos.toml` (#219)pseudometa