From ec015bdb320c7ece6e9c610eb32e77e7db68cae2 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Tue, 11 Jan 2022 11:10:48 +0100 Subject: feat(hls): enable single-file support seems to work here --- lua/lspconfig/server_configurations/hls.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/hls.lua b/lua/lspconfig/server_configurations/hls.lua index a074293f..32b3ea22 100644 --- a/lua/lspconfig/server_configurations/hls.lua +++ b/lua/lspconfig/server_configurations/hls.lua @@ -5,6 +5,7 @@ return { cmd = { 'haskell-language-server-wrapper', '--lsp' }, filetypes = { 'haskell', 'lhaskell' }, root_dir = util.root_pattern('*.cabal', 'stack.yaml', 'cabal.project', 'package.yaml', 'hie.yaml'), + single_file_support = true, settings = { haskell = { formattingProvider = 'ormolu', -- cgit v1.2.3-70-g09d2