diff --git a/modules/common/neovim/config/github.lua b/modules/common/neovim/config/github.lua index 0a8f139..0ec1478 100644 --- a/modules/common/neovim/config/github.lua +++ b/modules/common/neovim/config/github.lua @@ -2,8 +2,11 @@ vim.keymap.set("n", "gr", ":!gh browse %", { silent = true }) -- Pop a terminal to watch the current run -local gitwatch = - require("toggleterm.terminal").Terminal:new({ cmd = "fish --interactive --init-command 'gh run watch'" }) +local gitwatch = require("toggleterm.terminal").Terminal:new({ + cmd = "fish --interactive --init-command 'gh run watch'", + hidden = true, + direction = "float", +}) -- Set a toggle for this terminal function GITWATCH_TOGGLE() @@ -11,4 +14,4 @@ function GITWATCH_TOGGLE() end -- Keymap to toggle the run -vim.keymap.set("n", "gw", GITWATCH_TOGGLE) +vim.keymap.set("n", "W", GITWATCH_TOGGLE)