Skip to content

Commit b2a5321

Browse files
committed
Fix eglot-server-programs entry format for neocaml
The modes list needs an outer wrapping list -- eglot expects (MODES-LIST CONTACT), not a flat list mixing modes and the server command.
1 parent 2497ca1 commit b2a5321

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/prelude-ocaml.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
(assq 'neocaml-mode (car entry))))
6363
eglot-server-programs)
6464
(add-to-list 'eglot-server-programs
65-
'((neocaml-mode :language-id "ocaml")
66-
(neocaml-interface-mode
67-
:language-id "ocaml.interface")
65+
'(((neocaml-mode :language-id "ocaml")
66+
(neocaml-interface-mode
67+
:language-id "ocaml.interface"))
6868
"ocamllsp")))))
6969

7070
;; OCaml-specific Eglot extensions (requires ocaml-lsp-server).

0 commit comments

Comments
 (0)