From d974be35c2175a8c0acc76371589130782ab39ad Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 7 Jan 2024 17:54:19 +0530 Subject: [PATCH] nvim: lsp-utils: Update Haskell LSP settings checkProject if set to true, type checks the entire project on initial load. If activated by default which it is, can lead to bad performance in large projects. --- nvim/.config/nvim/lua/lsp-utils.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/lsp-utils.lua b/nvim/.config/nvim/lua/lsp-utils.lua index adb9a81..c2b3627 100644 --- a/nvim/.config/nvim/lua/lsp-utils.lua +++ b/nvim/.config/nvim/lua/lsp-utils.lua @@ -189,7 +189,15 @@ function M.hls_config() root_dir = root_directory, filetypes = { 'haskell' }, single_file_support = true, - settings = { haskell = { formattingProvider = 'ormolu' } }, + settings = { + haskell = { + checkParents = 'CheckOnSave', + checkProject = false, + formattingProvider = 'ormolu', + maxCompletions = 20, + plugin = { stan = { globalOn = false } } + } + }, } end