about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-10-27 11:35:31 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-10-27 11:35:31 +0100
commit56a670536a81b6188b5614edb52512d6cd0941b1 (patch)
tree6aa24003f7334fe367ee593205d2113a35837015 /dotfiles
parentdotfiles: nvim: dont enable nvim-test go runner unless go treesitter parser i... (diff)
downloadnixos-config-56a670536a81b6188b5614edb52512d6cd0941b1.tar.gz
nixos-config-56a670536a81b6188b5614edb52512d6cd0941b1.tar.bz2
nixos-config-56a670536a81b6188b5614edb52512d6cd0941b1.zip
dotfiles: nvim: run autoformatter async and install haskell formatter
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/nvim/init.lua4
1 files changed, 2 insertions, 2 deletions
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' },
       },
     },
   },