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.
16 lines
360 B
Lua
16 lines
360 B
Lua
local Terminal = require('toggleterm.terminal').Terminal
|
|
|
|
local gitui = Terminal:new({
|
|
cmd = "gitui",
|
|
dir = vim.fn.expand('%p'),
|
|
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})
|