diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/alejandra.lua | 8 |
3 files changed, 10 insertions, 0 deletions
@@ -156,6 +156,7 @@ To view configured and available formatters, as well as to see the path to the l <!-- FORMATTERS --> +- [alejandra](kamadorueda.github.io/alejandra/) - The Uncompromising Nix Code Formatter. - [autoflake](https://github.com/PyCQA/autoflake) - Removes unused imports and unused variables as reported by pyflakes. - [autopep8](https://github.com/hhatto/autopep8) - A tool that automatically formats Python code to conform to the PEP 8 style guide. - [beautysh](https://github.com/lovesegfault/beautysh) - A Bash beautifier for the masses. diff --git a/doc/conform.txt b/doc/conform.txt index f4dee97..7fc325e 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -147,6 +147,7 @@ get_formatter_info({formatter}, {bufnr}): conform.FormatterInfo *conform.get_for -------------------------------------------------------------------------------- FORMATTERS *conform-formatters* +alejandra - The Uncompromising Nix Code Formatter. `autoflake` - Removes unused imports and unused variables as reported by pyflakes. `autopep8` - A tool that automatically formats Python code to conform to the PEP diff --git a/lua/conform/formatters/alejandra.lua b/lua/conform/formatters/alejandra.lua new file mode 100644 index 0000000..3a712b9 --- /dev/null +++ b/lua/conform/formatters/alejandra.lua @@ -0,0 +1,8 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://kamadorueda.com/alejandra/", + description = "The Uncompromising Nix Code Formatter.", + }, + command = "alejandra", +} |