nvim: nice hls default settings

credit: mrcjkb
This commit is contained in:
Primrose 2025-07-08 14:15:00 +02:00
parent 8037a95b03
commit 5b8f5dbeb2
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -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" })