nvim: lsp-utils: Enable HLS for cabal files

This commit is contained in:
Sanchayan Maity 2024-04-04 12:14:54 +05:30
parent 0f8e52bae1
commit 97bdd3d9e1
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -187,15 +187,16 @@ function M.hls_config()
cmd = { 'haskell-language-server-wrapper', '--lsp' },
capabilities = default_capabilities,
root_dir = root_directory,
filetypes = { 'haskell' },
filetypes = { 'cabal', 'haskell' },
single_file_support = true,
settings = {
haskell = {
checkParents = 'CheckOnSave',
checkProject = false,
formattingProvider = 'ormolu',
maxCompletions = 20,
plugin = { stan = { globalOn = false } }
checkParents = 'CheckOnSave',
checkProject = false,
cabalFormattingProvider = 'cabalfmt',
formattingProvider = 'ormolu',
maxCompletions = 20,
plugin = { stan = { globalOn = false } }
}
},
}