From 56a670536a81b6188b5614edb52512d6cd0941b1 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 27 Oct 2024 11:35:31 +0100 Subject: dotfiles: nvim: run autoformatter async and install haskell formatter --- dotfiles/nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua index bbc76a2..af58451 100644 --- a/dotfiles/nvim/init.lua +++ b/dotfiles/nvim/init.lua @@ -693,13 +693,12 @@ require('lazy').setup({ 'stevearc/conform.nvim', opts = { notify_on_error = false, - format_on_save = function(bufnr) + format_after_save = function(bufnr) -- Disable "format_on_save lsp_fallback" for languages that don't -- have a well standardized coding style. You can add additional -- languages here or re-enable it for the disabled ones. local disable_filetypes = { c = true, cpp = true } return { - timeout_ms = 500, lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype], } end, @@ -712,6 +711,7 @@ require('lazy').setup({ -- is found. -- javascript = { { "prettierd", "prettier" } }, go = { "goimports", "gofmt" }, + haskell = { 'ormolu' }, }, }, }, -- cgit 1.4.1