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:
Henrik Lissner
2025-08-27 17:11:42 +02:00
parent 47fe11cd76
commit c1ac8bc37a
3 changed files with 0 additions and 11 deletions

View File

@@ -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]]

View File

@@ -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

View File

@@ -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"))