Skip to content

hijack vim.lsp.buf.hover #328

@ChausseBenjamin

Description

@ChausseBenjamin

The current implementation to see popups for images under the cursor can be a little jarring, especially when scrolling through parts of a document containing many images. LSPs already allow to look at the definition of a variable/function under the cursor.

It feels like it would make semantic sense to have image.nvim take over that hovering buffer for paths pointing to images.

For example, I have K mapped to vim.lsp.hover. This would allow the image to only appear when pressing that key.

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