dotfiles/modules/common/neovim/config/github.lua

18 lines
498 B
Lua
Raw Normal View History

2023-11-06 01:40:18 +00: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 17:54:09 +00:00
local gitwatch = require("toggleterm.terminal").Terminal:new({
cmd = "fish --interactive --init-command 'gh run watch'",
hidden = true,
direction = "float",
})
2023-11-06 01:40:18 +00:00
-- Set a toggle for this terminal
function GITWATCH_TOGGLE()
gitwatch:toggle()
end
-- Keymap to toggle the run
2024-06-05 17:54:09 +00:00
vim.keymap.set("n", "<Leader>W", GITWATCH_TOGGLE)