Skip to content

Commit

Permalink
Normalize next and prev function
Browse files Browse the repository at this point in the history
it makes invoking commands more thematic. Ie: `ocaml-eglot-h...` will
complete on `holes`.
  • Loading branch information
xvw committed Dec 10, 2024
1 parent 1913210 commit bd41abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocaml-eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ If there is no available holes, it returns the first one of HOLES."
(<= (ocaml-eglot-util--compare-position hole-end end) 0))
(ocaml-eglot-util--jump-to hole-start))))))

(defun ocaml-eglot-prev-hole ()
(defun ocaml-eglot-hole-prev ()
"Jump to the previous hole."
(interactive)
(eglot--server-capable-or-lose :experimental :ocamllsp :handleTypedHoles)
Expand All @@ -200,7 +200,7 @@ If there is no available holes, it returns the first one of HOLES."
(hole (ocaml-eglot--first-hole-at holes current-pos '<)))
(when hole (ocaml-eglot-util--jump-to-range hole))))

(defun ocaml-eglot-next-hole ()
(defun ocaml-eglot-hole-next ()
"Jump to the next hole."
(interactive)
(eglot--server-capable-or-lose :experimental :ocamllsp :handleTypedHoles)
Expand Down

0 comments on commit bd41abb

Please sign in to comment.