Skip to content

Instantly share code, notes, and snippets.

@Axlefublr
Created April 30, 2023 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Axlefublr/b05d91c0e39f265e35bc7cc7d591645e to your computer and use it in GitHub Desktop.
Save Axlefublr/b05d91c0e39f265e35bc7cc7d591645e to your computer and use it in GitHub Desktop.
Vscode neovim api
Command Description
VSCodeNotify(command, ...)
VSCodeCall(command, ...)
Invoke VSCode command with optional arguments.
VSCodeNotifyRange(command, line1, line2, leaveSelection ,...)
VSCodeCallRange(command, line1, line2, leaveSelection, ...)
Produce linewise VSCode selection from line1 to line2 and invoke VSCode command. Setting leaveSelection to 1 keeps VSCode selection active after invoking the command.
VSCodeNotifyRangePos(command, line1, line2, pos1, pos2, leaveSelection ,...)
VSCodeCallRangePos(command, line1, line2, pos1, pos2, leaveSelection, ...)
Produce characterwise VSCode selection from line1.pos1 to line2.pos2 and invoke VSCode command.
VSCodeNotifyVisual(command, leaveSelection, ...)
VSCodeCallVisual(command, leaveSelection, ...)
Produce linewise (visual line) or characterwise (visual and visual block) selection from visual mode selection and invoke VSCode command. Behaves like VSCodeNotify/Call when visual mode is not active.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment