Skip to content

Commit

Permalink
chore(doc): documents snippetCancel action
Browse files Browse the repository at this point in the history
Closes #4739
  • Loading branch information
chemzqm committed Aug 31, 2023
1 parent 15c8946 commit c7d73df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/coc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,8 @@ A snippet session would be deactivated under the following conditions:
• Content changed in a snippet outside placeholder (except for deletion of
plain text).

Use |CocAction('snippetCancel')| for cancel snippet session manually.

To load and expand custom snippets, install `coc-snippets` extension is
recommended.

Expand Down Expand Up @@ -2641,6 +2643,10 @@ Acceptable {action} names for |CocAction()| and |CocActionAsync()|.

When {mode} is omitted, it should be called using |formatexpr|.

"snippetCancel" *CocAction('snippetCancel')*

Cancel current snippet session.

"snippetInsert" {range} {snippet} [{mode}] *CocAction('snippetInsert')*

Insert {snippet} text as specific {range} of current buffer.
Expand Down

0 comments on commit c7d73df

Please sign in to comment.