18 lines
498 B
Lua
Raw Normal View History

2023-11-05 20:40:18 -05:00
-- Keymap to open file in GitHub web
vim.keymap.set("n", "<Leader>gr", ":!gh browse %<CR><CR>", { silent = true })
-- Pop a terminal to watch the current run
2024-06-05 13:54:09 -04:00
local gitwatch = require("toggleterm.terminal").Terminal:new({
cmd = "fish --interactive --init-command 'gh run watch'",
hidden = true,
direction = "float",
})
2023-11-05 20:40:18 -05:00
-- Set a toggle for this terminal
function GITWATCH_TOGGLE()
gitwatch:toggle()
end
-- Keymap to toggle the run
2024-06-05 13:54:09 -04:00
vim.keymap.set("n", "<Leader>W", GITWATCH_TOGGLE)