diff options
Diffstat (limited to 'lua/ache')
| -rw-r--r-- | lua/ache/lazy.lua | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/lua/ache/lazy.lua b/lua/ache/lazy.lua index 50bc70c..e92b092 100644 --- a/lua/ache/lazy.lua +++ b/lua/ache/lazy.lua @@ -27,4 +27,39 @@ require("lazy").setup({ change_detection = { notify = false, }, -}) -- Will list every lua file in the directory and load them. + ui = { + custom_keys = { + -- You can define custom keymaps here. If present, the description will + -- be shown in the help menu. + -- To disable one of the defaults, set it to false. + + ["<leader>tl"] = { + function(plugin) + require("lazy.util").float_term({ "lazygit", "log" }, { + cwd = plugin.dir, + }) + end, + desc = "Open lazygit log", + }, + + ["<leader>ti"] = { + function(plugin) + Util.notify(vim.inspect(plugin), { + title = "Inspect " .. plugin.name, + lang = "lua", + }) + end, + desc = "Inspect Plugin", + }, + + ["<localleader>tt"] = { + function(plugin) + require("lazy.util").float_term(nil, { + cwd = plugin.dir, + }) + end, + desc = "Open terminal in plugin dir", + }, + }, + }, +}) -- Will list every Lua file in the directory and load them. |