Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ulysse <[email protected]>
  • Loading branch information
xvw and voodoos authored Jan 13, 2025
1 parent cb2aaac commit cce58e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ navigating through errors:

### Type Enclosings

`ocaml-eglot` displays the type of expression below the cursor and
increases or decreases the enclosings of the expression or verbosity:
In `ocaml-eglot` one can display the type of the expression below the cursor and
navigate the enclosing nodes while increasing or decreasing verbosity:

- `ocaml-eglot-type-enclosing` (<kbd>C-c</kbd> <kbd>C-t</kbd>)
Display the type of the selection and start a "type enclosing" session.

And when a type is displayed, additional commands are possible:
During a "type enclosing" session the following commands are available:

- `ocaml-eglot-type-enclosing-increase-verbosity` (<kbd>C-c</kbd>
<kbd>C-t</kbd> or <kbd>C-→</kbd>): to increase the verbosity of the
Expand Down
2 changes: 1 addition & 1 deletion ocaml-eglot-type-enclosing.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
(ocaml-eglot-type-enclosing--with-fixed-offset)))

(defun ocaml-eglot-type-enclosing-shrink ()
"Shrinking of the type enclosing."
"Display the type enclosing of a smaller enclosing if possible."
(interactive)
(when ocaml-eglot-type-enclosing-types
(if (<= ocaml-eglot-type-enclosing-offset 0)
Expand Down

0 comments on commit cce58e3

Please sign in to comment.