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,12 +187,13 @@ 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,
|
||||||
|
cabalFormattingProvider = 'cabalfmt',
|
||||||
formattingProvider = 'ormolu',
|
formattingProvider = 'ormolu',
|
||||||
maxCompletions = 20,
|
maxCompletions = 20,
|
||||||
plugin = { stan = { globalOn = false } }
|
plugin = { stan = { globalOn = false } }
|
||||||
|
|
Loading…
Reference in a new issue