diff --git a/nvim/.config/nvim/after/ftplugin/haskell.lua b/nvim/.config/nvim/after/ftplugin/haskell.lua index 9362461..75487e9 100644 --- a/nvim/.config/nvim/after/ftplugin/haskell.lua +++ b/nvim/.config/nvim/after/ftplugin/haskell.lua @@ -4,3 +4,10 @@ local hls_config = lsp_utils.hls_config() vim.lsp.start(hls_config) vim.bo.makeprg = 'cabal build --write-ghc-environment-files=always all' + +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + buffer = 0, + callback = function() + require("lint").try_lint() + end, +})