You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
328 B
Lua

local Terminal = require('toggleterm.terminal').Terminal
local gitui = Terminal:new({
cmd = "gitui",
direction = "float",
hidden = 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})