-
-
Notifications
You must be signed in to change notification settings - Fork 54
float.scope "cursor" shows diagnostics for the whole buffer #101
Copy link
Copy link
Open
Description
Noticed that at some point in time hover started showing diagnostic for the whole buffer, even though in my configuration I have:
vim.diagnostic.config {
float = {
scope = "cursor",
},
}- When I set
float.scope = "line"it works as expected (only diagnostic for the current line is shown).
I tried looking into the code and Nvim docs, and not sure how this should work:
- hover/diagnostic.lua is calling
vim.diagnostic.get()withopts.pos, whenfloat.scope == 'cursor'. - However, I don't see
posparameter at all invim.diagnostic.GetOpts.
Build Info
Neovim: v0.11.4
hover.nvim: 1553385
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels