nvim: Switch to static-ls for Haskell LSP
This commit is contained in:
parent
d9b0614587
commit
18502cbb50
1 changed files with 6 additions and 18 deletions
|
@ -204,27 +204,15 @@ function M.gopls_config()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.hls_config()
|
function M.hls_config()
|
||||||
local root_files = { 'hie.yaml', 'stack.yaml', 'cabal.project', '*.cabal', 'package.yaml' }
|
local root_files = { '*.cabal', 'cabal.project', 'hie.yaml', 'package.yaml', 'stack.yaml' }
|
||||||
local root_directory = get_root_directory(root_files)
|
local root_directory = get_root_directory(root_files)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name = "hls",
|
name = "static-ls",
|
||||||
cmd = { 'haskell-language-server-wrapper', '--lsp' },
|
cmd = { 'static-ls' },
|
||||||
capabilities = default_capabilities,
|
capabilities = default_capabilities,
|
||||||
root_dir = root_directory,
|
root_dir = root_directory,
|
||||||
filetypes = { 'cabal', 'haskell' },
|
filetypes = { 'haskell' },
|
||||||
single_file_support = true,
|
|
||||||
settings = {
|
|
||||||
haskell = {
|
|
||||||
checkParents = 'CheckOnSave',
|
|
||||||
checkProject = false,
|
|
||||||
cabalFormattingProvider = 'cabalfmt',
|
|
||||||
formattingProvider = 'ormolu',
|
|
||||||
maxCompletions = 20,
|
|
||||||
plugin = { stan = { globalOn = false } },
|
|
||||||
sessionLoading = 'multipleComponents'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue