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' }, cmd = { 'haskell-language-server-wrapper', '--lsp' },
capabilities = default_capabilities, capabilities = default_capabilities,
root_dir = root_directory, root_dir = root_directory,
filetypes = { 'haskell' }, filetypes = { 'cabal', 'haskell' },
single_file_support = true, single_file_support = true,
settings = { settings = {
haskell = { haskell = {
checkParents = 'CheckOnSave', checkParents = 'CheckOnSave',
checkProject = false, checkProject = false,
formattingProvider = 'ormolu', cabalFormattingProvider = 'cabalfmt',
maxCompletions = 20, formattingProvider = 'ormolu',
plugin = { stan = { globalOn = false } } maxCompletions = 20,
plugin = { stan = { globalOn = false } }
} }
}, },
} }