mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(ui): added custom commands for lazygit and opening a terminal for a plugin
This commit is contained in:
parent
7d02da2ff0
commit
be3909c544
4 changed files with 61 additions and 7 deletions
|
@ -96,12 +96,14 @@ function M.create(opts)
|
|||
end)
|
||||
|
||||
for key, handler in pairs(Config.options.ui.custom_keys) do
|
||||
self:on_key(key, function()
|
||||
local plugin = self.render:get_plugin()
|
||||
if plugin then
|
||||
handler(plugin)
|
||||
end
|
||||
end)
|
||||
if handler then
|
||||
self:on_key(key, function()
|
||||
local plugin = self.render:get_plugin()
|
||||
if plugin then
|
||||
handler(plugin)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
self:setup_patterns()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue