Skip to content

Commit

Permalink
Attempt to support haskell-ts-mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
magthe committed Sep 8, 2024
1 parent a76f87e commit e9d0f8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lsp-haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -714,13 +714,15 @@ arguments are non-nullable booleans."
(add-to-list 'lsp-language-id-configuration '(haskell-tng-mode . "haskell"))
(add-to-list 'lsp-language-id-configuration '(haskell-cabal-mode . "haskell"))
(add-to-list 'lsp-language-id-configuration '(haskell-ng-mode . "haskell"))
(add-to-list 'lsp-language-id-configuration '(haskell-ts-mode . "haskell"))

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

0 comments on commit e9d0f8a

Please sign in to comment.