diff --git a/lua/nxvim/plugins/toggleterm.lua b/lua/nxvim/plugins/toggleterm.lua index bf1241c..132f1aa 100644 --- a/lua/nxvim/plugins/toggleterm.lua +++ b/lua/nxvim/plugins/toggleterm.lua @@ -55,6 +55,13 @@ local lazygit = Terminal:new({ close_on_exit = true, }) +local slumber = Terminal:new({ + cmd = "slumber -f /home/t/.config/slumber/slumber.yml ", + dir = "git_dir", + on_open = function(term) set_lazygit_keymaps(term) end, + close_on_exit = true, +}) + local gitui = Terminal:new({ cmd = "gitui", dir = "git_dir", @@ -94,9 +101,10 @@ nx.map({ { { "", "", "`4" }, "4ToggleTerm", { "", "t" }, desc = "Toggle Terminal #4" }, -- External injections -- { "gt", function() gitui:toggle() end, "", desc = "Terminal UI" }, - { "gt", function() lazygit:toggle() end, "", desc = "Terminal UI" }, - { "`r", function() btop:toggle() end, desc = "Btop Resource Monitor" }, - { "`u", function() ncdu:toggle() end, desc = "NCurses Disk Usage" }, + { "gt", function() lazygit:toggle() end, "", desc = "Toggle Lazygit" }, + { "`r", function() btop:toggle() end, desc = "Toggle Btop Resource Monitor" }, + { "`u", function() ncdu:toggle() end, desc = "Toggle NCurses Disk Usage" }, + { "`s", function() slumber:toggle() end, desc = "Toggle Slumber" }, -- Telescope { "`/", "Telescope termfinder", desc = "Search Terminals", wk_label = "Search" }, { "/`", "Telescope termfinder", desc = "Search Terminals", wk_label = "Terminals" },