mirror of
https://github.com/sadan4/nvim.git
synced 2025-01-18 03:03:29 -05:00
guhhhh
This commit is contained in:
parent
6085fe0a38
commit
6505701cb8
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue