diff options
| author | pablu <me@pablu.de> | 2026-03-22 18:04:35 +0100 |
|---|---|---|
| committer | pablu <me@pablu.de> | 2026-03-22 18:04:35 +0100 |
| commit | 1d5ca0aa2971d2485575ed7c5efad17144cb3fb1 (patch) | |
| tree | 325017afee1cc8cde6808fa390e26394528bdfc1 /dot_config/nvim/lua/plugins/conform.lua | |
Initial commit
Diffstat (limited to 'dot_config/nvim/lua/plugins/conform.lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/conform.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/conform.lua b/dot_config/nvim/lua/plugins/conform.lua new file mode 100644 index 0000000..c10e6fa --- /dev/null +++ b/dot_config/nvim/lua/plugins/conform.lua @@ -0,0 +1,22 @@ +return { + "stevearc/conform.nvim", + config = function() + local conform = require("conform") + + conform.setup { + formatters_by_ft = { + lua = { "stylua" }, + python = { "isort", "black", lsp_format = "fallback" }, + gotmpl = { "djlint" } + }, + format_on_save = { + timeout_ms = 500, + lsp_format = "fallback" + } + } + + conform.formatters.djlint = { + append_args = { "--max-blank-lines", "5" } + } + end +} |
