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