summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/conform.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
commit2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch)
tree48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/editor/conform.fnl
parent16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff)
Refactor
Diffstat (limited to 'fnl/plugins/editor/conform.fnl')
-rw-r--r--fnl/plugins/editor/conform.fnl30
1 files changed, 0 insertions, 30 deletions
diff --git a/fnl/plugins/editor/conform.fnl b/fnl/plugins/editor/conform.fnl
deleted file mode 100644
index 511f695..0000000
--- a/fnl/plugins/editor/conform.fnl
+++ /dev/null
@@ -1,30 +0,0 @@
-;; Formatting
-
-(fn init []
- (vim.keymap.set [:n :v] :<leader>e
- (lambda []
- (let [conform (require :conform)]
- (conform.format {:lsp_fallback true :async true})))
- {:desc :Format}))
-
-(local opts {:formatters {:fnlfmt {:command :fnlfmt
- :args [:--fix :$FILENAME]
- :stdin false}}
- :formatters_by_ft {:* [:codespell]
- :_ [:trim_whitespace :trim_newlines]
- :css [:stylelint]
- :fennel [:fnlfmt]
- :haskell [:fourmolu]
- :html [:prettierd]
- :json [:jq]
- :lua [:stylua]
- :markdown [:prettierd]
- :ocaml [:ocamlformat]
- :python [:ruff_format]
- :rust [:rustfmt]
- :sh [:shfmt :shellharden]
- :sql [:pg_format :sqlfluff]
- :toml [:taplo]
- :yaml [:yamlfmt]}})
-
-{1 :stevearc/conform.nvim : init : opts :event [:BufReadPost :BufNewFile]}