diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index d3720440..08e22394 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -242,6 +242,19 @@ vim.g.haskell_tools = { vim.opt_local.shiftwidth = 2 on_attach(client, bufnr) end, + default_settings = { + haskell = { + checkProject = false, -- PERF: don't check the entire project on initial load + formattingProvider = "fourmolu", + plugin = { + rename = { + config = { + diff = true, -- (experimental) rename across modules + }, + }, + }, + }, + }, settings = function(project_root) local ht = require("haskell-tools") return ht.lsp.load_hls_settings(project_root, { settings_file_pattern = "hls.json" })