Skip to content

float.scope "cursor" shows diagnostics for the whole buffer #101

@vchernetskyi993

Description

@vchernetskyi993

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:

Build Info

Neovim: v0.11.4
hover.nvim: 1553385

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions