This commit is contained in:
sadan 2024-12-18 01:52:07 -05:00
parent 6085fe0a38
commit 6505701cb8
No known key found for this signature in database

View file

@ -13,12 +13,17 @@ local function hasLHS(arr, lhs)
end
return nil
end
-- returns
local function makeOldRightClick()
-- try buffer local mappings
local toRet = hasLHS(vim.api.nvim_buf_get_keymap(0, ""), "<RightMouse>")
if toRet ~= nil then
return toRet
if toRet == nil then
elseif toRet.callback ~= nil then
return toRet.callback
elseif toRet.rhs then
return toRet.rhs
else
error("how")
end
toRet = hasLHS(vim.api.nvim_get_keymap(""), "<RightMouse>")
if toRet == nil then