Commit graph

7 commits

Author SHA1 Message Date
Oliver Davies 2f76ac4d68 Add FormatDisable and FormatEnable commands 2024-08-26 01:10:56 +01:00
Oliver Davies c5763b912e Allow for disabling auto-formatting
Allow for disabling auto-formatting with a global or buffer-local
variable, based on
62eba813b7/doc/recipes.md (autoformat-with-extra-features).

In the future, it would be interesting to do this based on the presence
of a file in the repository, such as `.do-not-auto-format`.
2024-08-26 00:47:57 +01:00
Oliver Davies 690e61ee5e Refactor to use format_on_save instead of a
...custom autocmd
2024-07-08 16:37:49 +01:00
Oliver Davies 79afe5b876 Don't use the LSP as a fallback when formatting 2024-07-08 16:35:33 +01:00
Oliver Davies b00cef78af Enable formatting on save
I've usually been against auto-formatting on save and instead preferred
to trigger it manually using its own keybinding.

I'm enabling it for now to see how I feel about it and I'll either keep
or revert it.
2024-06-10 10:02:04 +01:00
Oliver Davies e8531ba993 Remove alejandra 2024-06-10 10:02:04 +01:00
Oliver Davies f724019e43 Move after/plugin to plugin 2024-05-22 12:36:52 +01:00
Renamed from after/plugin/conform.lua (Browse further)