mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
feat(haskell): add treesit support
This commit is contained in:
parent
086a0d30d0
commit
47fe11cd76
3 changed files with 16 additions and 3 deletions
|
|
@ -28,9 +28,6 @@
|
|||
#'haskell-collapse-mode ; support folding haskell code blocks
|
||||
#'interactive-haskell-mode)
|
||||
|
||||
(when (modulep! +tree-sitter)
|
||||
(add-hook 'haskell-mode-local-vars-hook #'tree-sitter! 'append))
|
||||
|
||||
(add-to-list 'completion-ignored-extensions ".hi")
|
||||
|
||||
(map! :map haskell-mode-map
|
||||
|
|
@ -47,6 +44,16 @@
|
|||
"H" #'haskell-hide-toggle-all))
|
||||
|
||||
|
||||
;; TODO: Mirror other haskell-mode config to ts-mode
|
||||
(use-package! haskell-ts-mode
|
||||
:when (modulep! +tree-sitter)
|
||||
:when (fboundp 'haskell-ts-mode)
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'haskell-mode 'haskell-ts-mode
|
||||
'((haskell :url "https://github.com/tree-sitter/tree-sitter-haskell"))))
|
||||
|
||||
|
||||
(use-package! lsp-haskell
|
||||
:when (modulep! +lsp)
|
||||
:defer t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue