diff options
| author | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-17 23:34:22 +0200 |
|---|---|---|
| committer | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-19 23:15:52 +0200 |
| commit | 0f3690bd084ba3b47b4c356089b03a6df763572c (patch) | |
| tree | 928d8f0d5ce0520d5acf782c4fdfd452f8f8470f /fnl/plugins/conform.fnl | |
| parent | 86adf15a8a338ae1ae71c18b9f11705fe6b36516 (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] |