From 8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59 Mon Sep 17 00:00:00 2001 From: coast Date: Tue, 13 Oct 2026 05:03:11 +0330 Subject: init --- nvim/lua/plugins/conform/init.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nvim/lua/plugins/conform/init.lua (limited to 'nvim/lua/plugins/conform') diff --git a/nvim/lua/plugins/conform/init.lua b/nvim/lua/plugins/conform/init.lua new file mode 100644 index 0000000..374ed55 --- /dev/null +++ b/nvim/lua/plugins/conform/init.lua @@ -0,0 +1,17 @@ +require("conform").setup({ + formatters_by_ft = { + haskell = { "ormolu" }, + }, + formatters = { + ormolu = { + command = "ormolu", + args = { "--stdin-input-file", "$FILENAME" }, + stdin = true, + }, + }, + format_on_save = { timeout_ms = 2000, lsp_format = "never" }, +}) + +vim.keymap.set({ "n", "v" }, "f", function() + require("conform").format({ async = true, lsp_format = "never" }) +end) -- cgit v1.3