Open ioperations opened 1 year ago
As vimspector states, it uses the balloons feature of Vim which Neovim doesn't have so no mouse hover cannot be implemented.
https://github.com/puremourning/vimspector#neovim-differences
actually there do have a snippet , but i cannot locate mouse position and pass the right expression to dapui,
local hover_time = 500
local hover_timer = nil
vim.o.mousemoveevent = true
local mousemove_str = vim.api.nvim_replace_termcodes("<MouseMove>", false, false, true)
local dap = require "dap"
local dapui = require "dapui"
vim.on_key(function(str)
if str == mousemove_str then
if hover_timer then
hover_timer:close()
end
hover_timer = vim.defer_fn(function()
hover_timer = nil
if dap.session() ~= nil then
-- print("looping " .. vim.loop.now())
-- pop()
dapui.eval()
end
end, hover_time)
end
end)
and there do have other issue, (when moving the mouse to float window that dapui managed, no new float window should be produced)
vimspector allow mouse hover to popup variable value , is there any thing like this or can it be implemented ?