mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(scala): add key for worksheet hover (#3853)
## What is this PR for? Worksheet hovering is a useful feature provided by `metals` to see not just the end result, but also the entire output of a function call, as can be seen here for example: https://youtu.be/Jv9B1crzpWM?t=16m20s Having a default key assigned not only makes it more convenient, but also increases discoverability. (I was also contemplating `<leader>mK` as the mapping to be in line with `K` for regular hover, but I wasn't convinced that the consistency is worth the extra keypress.) ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
64b0f0b71d
commit
859646f628
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ return {
|
||||||
end,
|
end,
|
||||||
desc = "Metals compile cascade",
|
desc = "Metals compile cascade",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<leader>mh",
|
||||||
|
function()
|
||||||
|
require("metals").hover_worksheet()
|
||||||
|
end,
|
||||||
|
desc = "Metals hover worksheet",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
init_options = {
|
init_options = {
|
||||||
statusBarProvider = "off",
|
statusBarProvider = "off",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue