Skip to content

Commit

Permalink
feat: alejandra formatter (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
leiserfg authored Sep 15, 2023
1 parent b436902 commit e6552b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions doc/conform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions lua/conform/formatters/alejandra.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://kamadorueda.com/alejandra/",
description = "The Uncompromising Nix Code Formatter.",
},
command = "alejandra",
}

0 comments on commit e6552b5

Please sign in to comment.