Skip to content

Commit f5e8aaf

Browse files
committed
feat: go to hover
1 parent 0ca5e54 commit f5e8aaf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

book/src/keymap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ This layer is a kludge of mappings, mostly pickers.
290290
| `g` | Open changed file picker | `changed_file_picker` |
291291
| `G` | Debug (experimental) | N/A |
292292
| `k` | Show documentation for item under cursor in a [popup](#popup) (**LSP**) | `hover` |
293-
| `K` | Show documentation for item under cursor in a new buffer (**LSP**) | `hover_dump` |
293+
| `K` | Go to documentation for item under cursor in a new buffer (**LSP**) | `goto_hover` |
294294
| `s` | Open document symbol picker (**LSP**) | `symbol_picker` |
295295
| `S` | Open workspace symbol picker (**LSP**) | `workspace_symbol_picker` |
296296
| `d` | Open document diagnostics picker (**LSP**) | `diagnostics_picker` |

helix-term/src/commands/lsp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ fn hover_impl(cx: &mut Context, hover_action: HoverDisplay) {
10781078
}
10791079
HoverDisplay::File => {
10801080
editor.new_file_from_document(
1081-
Action::VerticalSplit,
1081+
Action::Replace,
10821082
Document::from(
10831083
Rope::from(hover.content_string()),
10841084
None,
@@ -1100,7 +1100,7 @@ pub fn hover(cx: &mut Context) {
11001100
hover_impl(cx, HoverDisplay::Popup)
11011101
}
11021102

1103-
pub fn hover_dump(cx: &mut Context) {
1103+
pub fn goto_hover(cx: &mut Context) {
11041104
hover_impl(cx, HoverDisplay::File)
11051105
}
11061106

helix-term/src/keymap/default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
283283
"R" => replace_selections_with_clipboard,
284284
"/" => global_search,
285285
"k" => hover,
286-
"K" => hover_dump,
286+
"K" => goto_hover,
287287
"r" => rename_symbol,
288288
"h" => select_references_to_symbol_under_cursor,
289289
"c" => toggle_comments,

0 commit comments

Comments
 (0)