How to use hover range? #825
Answered
by
mrcjkb
afonsolage
asked this question in
Q&A
-
Checked other resources
DescriptionSorry if this is a dumb question, but I couldn't find the answer anywhere. How to use the hover range cmd? vim.keymap.set("v", "K",
function()
vim.cmd.RustLsp { 'hover', 'range' }
end, opts)hover actions works fine, but with this command, when I select multiple lines, nothing is shown. Example Codevim.keymap.set("v", "K",
function()
vim.cmd.RustLsp { 'hover', 'range' }
end, opts)Neovim version (nvim -v)0.11 Operating system/versionNixOS 25.05 Output of :checkhealth rustaceanvim==============================================================================
rustaceanvim: ✅
Checking for Lua dependencies ~
- ✅ OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.
Checking external dependencies ~
- ✅ OK rust-analyzer: found rust-analyzer 1.90.0-nightly (adcb3d3 2025-07-31)
- ✅ OK Cargo: found cargo 1.90.0-nightly (9b296973b 2025-07-25)
- ✅ OK rustc: found rustc 1.90.0-nightly (adcb3d3b4 2025-07-31)
- ✅ OK debug adapter: found codelldb
Checking config ~
- ✅ OK No errors found in config.
Checking for conflicting plugins ~
- ✅ OK No conflicting plugins detected.
Checking for tree-sitter parser ~
- ✅ OK tree-sitter parser for Rust detected. |
Beta Was this translation helpful? Give feedback.
Answered by
mrcjkb
Aug 3, 2025
Replies: 1 comment 1 reply
-
|
Are you sure it's not working? I just tried it (by sourcing your example) and it works fine on my end.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
afonsolage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure it's not working? I just tried it (by sourcing your example) and it works fine on my end.
One thing to keep in mind is that the hover range feature has different behaviour than the hover feature.
()(unit type), which opens a very small hover window.