diff --git a/nvim/.config/nvim/lua/lsp-utils.lua b/nvim/.config/nvim/lua/lsp-utils.lua index d5da917..3e9f9b5 100644 --- a/nvim/.config/nvim/lua/lsp-utils.lua +++ b/nvim/.config/nvim/lua/lsp-utils.lua @@ -204,27 +204,15 @@ function M.gopls_config() end 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) return { - name = "hls", - cmd = { 'haskell-language-server-wrapper', '--lsp' }, - capabilities = default_capabilities, - root_dir = root_directory, - filetypes = { 'cabal', 'haskell' }, - single_file_support = true, - settings = { - haskell = { - checkParents = 'CheckOnSave', - checkProject = false, - cabalFormattingProvider = 'cabalfmt', - formattingProvider = 'ormolu', - maxCompletions = 20, - plugin = { stan = { globalOn = false } }, - sessionLoading = 'multipleComponents' - } - }, + name = "static-ls", + cmd = { 'static-ls' }, + capabilities = default_capabilities, + root_dir = root_directory, + filetypes = { 'haskell' }, } end