fix nvim: menu for gitsigns失效
This commit is contained in:
parent
52960297c1
commit
e533009bea
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user