summaryrefslogtreecommitdiff
path: root/lua/ache
diff options
context:
space:
mode:
authorache <ache@ache.one>2025-05-14 18:18:29 +0200
committerache <ache@ache.one>2025-05-14 18:18:29 +0200
commit3b628def5567bfc41eb3b1744d6fe1c77d08ea42 (patch)
tree62a58196deafce0c36a23ad30fc8cf330f581f19 /lua/ache
parentSet localleader (diff)
Configure Lazy shortkeys
Diffstat (limited to 'lua/ache')
-rw-r--r--lua/ache/lazy.lua37
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.