From ac8edfb0db52efe65e01f73ef44133a86571ba02 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Fri, 17 Apr 2026 23:34:22 +0200 Subject: More based fixes --- fnl/plugins/conform.fnl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'fnl/plugins/conform.fnl') 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] :e - (λ [] - (let [conform (require :conform)] - (conform.format {:lsp_fallback true :async true}))) - {:desc :Format})) + (keymap [:n :v] :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] -- cgit v1.2.3-70-g09d2