Skip to content

Commit 918ffa2

Browse files
authored
Merge pull request #172 from alanz/cabal-support
Add haskell-cabal-mode to supported modes
2 parents 70ed652 + 87a64d1 commit 918ffa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-haskell.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,14 @@ and `lsp-haskell-server-args' and `lsp-haskell-server-wrapper-function'."
288288
;; https://microsoft.github.io/language-server-protocol/specification#textDocumentItem
289289
(add-to-list 'lsp-language-id-configuration '(haskell-literate-mode . "haskell"))
290290
(add-to-list 'lsp-language-id-configuration '(haskell-tng-mode . "haskell"))
291+
(add-to-list 'lsp-language-id-configuration '(haskell-cabal-mode . "haskell"))
291292

292293
;; Register the client itself
293294
(lsp-register-client
294295
(make-lsp--client
295296
:new-connection (lsp-stdio-connection (lambda () (lsp-haskell--server-command)))
296297
;; Should run under haskell-mode, haskell-literate-mode and haskell-tng-mode. We need to list haskell-literate-mode even though it's a derived mode of haskell-mode.
297-
:major-modes '(haskell-mode haskell-literate-mode haskell-tng-mode)
298+
:major-modes '(haskell-mode haskell-literate-mode haskell-tng-mode haskell-cabal-mode)
298299
;; This is arbitrary.
299300
:server-id 'lsp-haskell
300301
;; HLS does not currently send 'workspace/configuration' on startup (https://github.com/haskell/haskell-language-server/issues/2762),

0 commit comments

Comments
 (0)