Skip to content

Commit d229fdc

Browse files
authored
Merge pull request #189 from SKyletoft/master
Add support for haskell-ts-mode
2 parents ba49fa9 + 6cd4bcf commit d229fdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-haskell.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -714,13 +714,14 @@ arguments are non-nullable booleans."
714714
(add-to-list 'lsp-language-id-configuration '(haskell-literate-mode . "haskell"))
715715
(add-to-list 'lsp-language-id-configuration '(haskell-tng-mode . "haskell"))
716716
(add-to-list 'lsp-language-id-configuration '(haskell-cabal-mode . "haskell"))
717+
(add-to-list 'lsp-language-id-configuration '(haskell-ts-mode . "haskell"))
717718

718719
;; Register the client itself
719720
(lsp-register-client
720721
(make-lsp--client
721722
:new-connection (lsp-stdio-connection (lambda () (lsp-haskell--server-command)))
722723
;; 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.
723-
:major-modes '(haskell-mode haskell-literate-mode haskell-tng-mode haskell-cabal-mode)
724+
:major-modes '(haskell-mode haskell-literate-mode haskell-tng-mode haskell-cabal-mode haskell-ts-mode)
724725
;; This is arbitrary.
725726
:server-id 'lsp-haskell
726727
;; HLS does not currently send 'workspace/configuration' on startup (https://github.com/haskell/haskell-language-server/issues/2762),

0 commit comments

Comments
 (0)