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