diff options
| author | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-17 23:34:22 +0200 |
|---|---|---|
| committer | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-18 00:50:44 +0200 |
| commit | ac8edfb0db52efe65e01f73ef44133a86571ba02 (patch) | |
| tree | 928d8f0d5ce0520d5acf782c4fdfd452f8f8470f /fnl/plugins/conform.fnl | |
| parent | 152fd9d787c7433cad95795992e444250cb83216 (diff) | |
More based fixes
Diffstat (limited to 'fnl/plugins/conform.fnl')
| -rw-r--r-- | fnl/plugins/conform.fnl | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/fnl/plugins/conform.fnl b/fnl/plugins/conform.fnl index b84627d..5995635 100644 --- a/fnl/plugins/conform.fnl +++ b/fnl/plugins/conform.fnl @@ -1,11 +1,13 @@ ;; Formatting +(import-macros {: keymap} :macros) + (λ init [] - (vim.keymap.set [:n :v] :<leader>e - (λ [] - (let [conform (require :conform)] - (conform.format {:lsp_fallback true :async true}))) - {:desc :Format})) + (keymap [:n :v] :<leader>e + (λ [] + (let [conform (require :conform)] + (conform.format {:lsp_fallback true :async true}))) + {:desc :Format})) (local opts {:formatters {:fnlfmt {:command :fnlfmt :args [:--fix :$FILENAME] @@ -22,7 +24,9 @@ :lua [:stylua] :markdown [:prettierd] :ocaml [:ocamlformat] - :python [:ruff_format :ruff_fix :ruff_organize_imports] + :python [:ruff_format + :ruff_fix + :ruff_organize_imports] :rust [:rustfmt] :sh [:shfmt :shellharden] :sql [:pg_format :sqlfmt] |