We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a35923e commit 1006e63Copy full SHA for 1006e63
lua/hoversplit/init.lua
@@ -98,11 +98,12 @@ function M.setup(options)
98
99
vim.api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, {
100
group = vim.api.nvim_create_augroup("HoverSplit", { clear = true }),
101
- callback = function()
102
- M.update_hover_content()
+ callback = function(args)
+ if args.buf ~= M.hover_bufnr then
103
+ M.update_hover_content()
104
+ end
105
end,
106
})
- -- vim.cmd([[ autocmd CursorMoved,CursorMovedI * lua require("hoversplit").update_hover_content() ]])
107
108
if config.options.key_bindings_disabled then
109
return
0 commit comments