mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat: single-plugin keys in the lazy view in visual mode (#1476)
Applies to all plugins contained in the range
This commit is contained in:
parent
8f19915175
commit
7667a73dee
2 changed files with 17 additions and 6 deletions
|
@ -251,8 +251,9 @@ end
|
|||
---@param key string
|
||||
---@param fn fun(self?)
|
||||
---@param desc? string
|
||||
function M:on_key(key, fn, desc)
|
||||
vim.keymap.set("n", key, function()
|
||||
---@param mode? string[]
|
||||
function M:on_key(key, fn, desc,mode)
|
||||
vim.keymap.set(mode or "n", key, function()
|
||||
fn(self)
|
||||
end, {
|
||||
nowait = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue