nvim: lsp-utils: Update Haskell LSP settings

checkProject if set to true, type checks the entire project on initial
load. If activated by default which it is, can lead to bad performance
in large projects.
This commit is contained in:
Sanchayan Maity 2024-01-07 17:54:19 +05:30
parent 75670080c0
commit d974be35c2
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -189,7 +189,15 @@ function M.hls_config()
root_dir = root_directory, root_dir = root_directory,
filetypes = { 'haskell' }, filetypes = { 'haskell' },
single_file_support = true, single_file_support = true,
settings = { haskell = { formattingProvider = 'ormolu' } }, settings = {
haskell = {
checkParents = 'CheckOnSave',
checkProject = false,
formattingProvider = 'ormolu',
maxCompletions = 20,
plugin = { stan = { globalOn = false } }
}
},
} }
end end