Skip to content

Commit

Permalink
Merge pull request #184 from amesgen/session-loading
Browse files Browse the repository at this point in the history
Expose `lsp-haskell-session-loading` config
  • Loading branch information
michaelpj authored Jul 5, 2024
2 parents 18a7c78 + deebb4f commit 1d15706
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lsp-haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d15706

Please sign in to comment.