fix nvim: menu for gitsigns失效

This commit is contained in:
Yuan Chiu 2025-06-02 22:16:03 +08:00
parent 52960297c1
commit e533009bea
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -20,6 +20,7 @@ return {
vim.cmd.exec '"normal! \\<RightMouse>"'
vim.defer_fn(function()
-- clicked buf
local mouse = vim.fn.getmousepos()
local buf = vim.api.nvim_win_get_buf(mouse.winid)
@ -57,6 +58,7 @@ return {
-- "\n🧭 Menu: " .. options, vim.log.levels.INFO
-- )
require("menu").open(options, { mouse = true })
end, 10)
end, {})
end,