hover.nvim icon indicating copy to clipboard operation
hover.nvim copied to clipboard

feat: add highlight provider

Open pinbraerts opened this issue 1 year ago • 3 comments

Reused code from vim.show_pos. Tried to override vim.api.nvim_echo, but it is extremely unsafe and messed up gui a bit. Then I tried to capture output of the command into buffer but that droped highlights.

I use vim.o.cmdheight = 0 and status bar blinks. Looks like something is blocking gui. Leaving it as draft until I figure out why.

pinbraerts avatar Jun 17 '24 20:06 pinbraerts

photo_2024-06-17_23-37-02

pinbraerts avatar Jun 17 '24 20:06 pinbraerts

Reduced number of calls to nvim api, but that seems to do nothing. Also I noticed that other bufnr provider (man) cause the same flickering of the status/command line. I'll report that as a different issue.

The provider is ready to squash and merge.

EDIT: cleared some cache files, removed and restored all files in config, updated lazy and suddenly the problem is gone

pinbraerts avatar Jun 18 '24 08:06 pinbraerts

Also the documentation states that priority is optional, but it is not marked as optional in luadocs, which leads to lua-ls complaining. Is it optional or not? Should I give it some priority? I want it to be the lowest priority by default

pinbraerts avatar Jun 19 '24 15:06 pinbraerts