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
362 B
Lua
16 lines
362 B
Lua
local libmodal = require('libmodal')
|
|
local commandList = {'new', 'close', 'last'}
|
|
|
|
function barMode()
|
|
local uinput = vim.api.nvim_get_var('tabModeInput')
|
|
if uinput == 'new' then
|
|
execute 'tabnew'
|
|
elseif uinput == 'close' then
|
|
execute 'tabclose'
|
|
elseif uinput == 'last' then
|
|
execute 'tablast'
|
|
end
|
|
end
|
|
|
|
libmodal.prompt.enter('BAR', barMode, commandList)
|