fix nvim: menu for gitsigns失效

This commit is contained in:
2025-06-02 22:16:03 +08:00
parent 52960297c1
commit e533009bea

View File

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