nvim: lsp-utils: Enable HLS for cabal files
This commit is contained in:
parent
0f8e52bae1
commit
97bdd3d9e1
1 changed files with 7 additions and 6 deletions
|
@ -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 } }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue