Skip to content

Commit

Permalink
add gh hover command (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-wow authored and johnfn committed Oct 19, 2016
1 parent 89ad07f commit ea463a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4913,6 +4913,19 @@ class MoveAroundTag extends MoveTagMatch {
includeTag = true;
}

@RegisterAction
class ActionTriggerHover extends BaseCommand {
modes = [ModeName.Normal];
keys = ["g", "h"];
runsOnceForEveryCursor() { return false; }

public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand("editor.action.showHover");

return vimState;
}
}

/**
* Multi-Cursor Command Overrides
*
Expand Down

0 comments on commit ea463a1

Please sign in to comment.