summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeiser Fernández Gallo <leiserfg@gmail.com>2023-09-15 15:48:05 +0200
committerGitHub <noreply@github.com>2023-09-15 06:48:05 -0700
commite6552b5c9b3a2b12bacb476b00c80c736b9f7963 (patch)
treefcf597e21a69f133883a0cf7a7c6c76e22da373d
parentb43690264ebcb152365d5b46faa6561f12ea062a (diff)
feat: alejandra formatter (#52)
-rw-r--r--README.md1
-rw-r--r--doc/conform.txt1
-rw-r--r--lua/conform/formatters/alejandra.lua8
3 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 63f7a89..973997d 100644
--- a/README.md
+++ b/README.md
@@ -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",
+}