mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
refactor(ocaml): remove tree-sitter support
No *-ts-mode exists for tuareg-mode. There *is* a ocaml-ts-mode, but it's too rudimentary. The ocaml module will fall back to font-lock rules so this is not a breaking changing.
This commit is contained in:
@@ -23,9 +23,6 @@ This module adds [[https://ocaml.org/][OCaml]] support to Doom Emacs, powered by
|
|||||||
- +lsp ::
|
- +lsp ::
|
||||||
Enable LSP support for ~tuareg-mode~. Requires [[doom-module::tools lsp]] and a langserver
|
Enable LSP support for ~tuareg-mode~. Requires [[doom-module::tools lsp]] and a langserver
|
||||||
(supports [[https://github.com/freebroccolo/ocaml-language-server][ocaml-language-server]]).
|
(supports [[https://github.com/freebroccolo/ocaml-language-server][ocaml-language-server]]).
|
||||||
- +tree-sitter ::
|
|
||||||
Leverages tree-sitter for better syntax highlighting and structural text
|
|
||||||
editing. Requires [[doom-module::tools tree-sitter]].
|
|
||||||
|
|
||||||
** Packages
|
** Packages
|
||||||
- [[doom-package:dune]]
|
- [[doom-package:dune]]
|
||||||
|
@@ -130,10 +130,6 @@
|
|||||||
(opam-switch-set-switch (tuareg-opam-current-compiler)))
|
(opam-switch-set-switch (tuareg-opam-current-compiler)))
|
||||||
|
|
||||||
|
|
||||||
(when (modulep! +tree-sitter)
|
|
||||||
(add-hook 'tuareg-mode-local-vars-hook #'tree-sitter!))
|
|
||||||
|
|
||||||
|
|
||||||
(use-package! dune
|
(use-package! dune
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
|
@@ -5,10 +5,6 @@
|
|||||||
(modulep! :tools lsp))
|
(modulep! :tools lsp))
|
||||||
"This module requires (:tools lsp)")
|
"This module requires (:tools lsp)")
|
||||||
|
|
||||||
(assert! (or (not (modulep! +tree-sitter))
|
|
||||||
(modulep! :tools tree-sitter))
|
|
||||||
"This module requires (:tools tree-sitter)")
|
|
||||||
|
|
||||||
(unless (executable-find "ocamlmerlin")
|
(unless (executable-find "ocamlmerlin")
|
||||||
(warn! "Couldn't find ocamlmerlin. Lookup, completion and syntax checking won't work"))
|
(warn! "Couldn't find ocamlmerlin. Lookup, completion and syntax checking won't work"))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user