adding gitui button

master
Jordan Orelli 1 year ago
parent 3c86c09c51
commit 0bfcfa6ac7

@ -23,3 +23,4 @@ let g:terminal_color_14 = '#1ab2a8'
let g:terminal_color_15 = '#ffffff'
lua require('term')
lua require('git')

@ -0,0 +1,14 @@
local Terminal = require('toggleterm.terminal').Terminal
local gitui = Terminal:new({
cmd = "gitui",
direction = "float",
hidden = true,
autochdir = true,
close_on_exit = true,
})
function _gitui_toggle()
gitui:toggle()
end
vim.api.nvim_set_keymap("n", "<F9>", "<cmd>lua _gitui_toggle()<CR>", {noremap = true, silent = true})
Loading…
Cancel
Save