From deebb4fadd4cca9322d61ebb8c2f9a5604093fdb Mon Sep 17 00:00:00 2001 From: amesgen Date: Thu, 4 Jul 2024 22:08:00 +0200 Subject: [PATCH] Expose `lsp-haskell-session-loading` config --- lsp-haskell.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lsp-haskell.el b/lsp-haskell.el index b8f5d91..94c182f 100644 --- a/lsp-haskell.el +++ b/lsp-haskell.el @@ -65,6 +65,16 @@ It could lead to bad perfomance in large projects." :group 'lsp-haskell :type 'number :lsp-path "haskell.maxCompletions") +(defcustom-lsp lsp-haskell-session-loading + "singleComponent" + "Preferred approach for loading package components. Setting this +to 'multiple components' (EXPERIMENTAL) allows the build +tool (such as `cabal` or `stack`) to load multiple components at +once `https://github.com/haskell/cabal/pull/8726', which is a +significant improvement." + :group 'lsp-haskell + :type '(choice (const "singleComponent") (const "multipleComponents")) + :lsp-path "haskell.sessionLoading") ;; --------------------------------------------------------------------- ;; Plugin-specific configuration