mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 01:55:37 +00:00
15 lines
454 B
Lua
15 lines
454 B
Lua
|
-- 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
|
||
|
local gitwatch =
|
||
|
require("toggleterm.terminal").Terminal:new({ cmd = "fish --interactive --init-command 'gh run watch'" })
|
||
|
|
||
|
-- Set a toggle for this terminal
|
||
|
function GITWATCH_TOGGLE()
|
||
|
gitwatch:toggle()
|
||
|
end
|
||
|
|
||
|
-- Keymap to toggle the run
|
||
|
vim.keymap.set("n", "<Leader>gw", GITWATCH_TOGGLE)
|