Skip to content

Commit 1d15706

Browse files
authored
Merge pull request #184 from amesgen/session-loading
Expose `lsp-haskell-session-loading` config
2 parents 18a7c78 + deebb4f commit 1d15706

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lsp-haskell.el

+10
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ It could lead to bad perfomance in large projects."
6565
:group 'lsp-haskell
6666
:type 'number
6767
:lsp-path "haskell.maxCompletions")
68+
(defcustom-lsp lsp-haskell-session-loading
69+
"singleComponent"
70+
"Preferred approach for loading package components. Setting this
71+
to 'multiple components' (EXPERIMENTAL) allows the build
72+
tool (such as `cabal` or `stack`) to load multiple components at
73+
once `https://github.com/haskell/cabal/pull/8726', which is a
74+
significant improvement."
75+
:group 'lsp-haskell
76+
:type '(choice (const "singleComponent") (const "multipleComponents"))
77+
:lsp-path "haskell.sessionLoading")
6878

6979
;; ---------------------------------------------------------------------
7080
;; Plugin-specific configuration

0 commit comments

Comments
 (0)