mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-18 15:25:49 +00:00
14 lines
317 B
Lua
14 lines
317 B
Lua
let s:commandList = ['new', 'close', 'last']
|
|
|
|
function! s:BarMode() abort
|
|
if g:tabModeInput ==# 'new'
|
|
execute 'tabnew'
|
|
elseif g:tabModeInput ==# 'close'
|
|
execute 'tabclose'
|
|
elseif g:tabModeInput ==# 'last'
|
|
execute 'tablast'
|
|
endif
|
|
endfunction
|
|
|
|
call libmodal#Prompt('TAB', funcref('s:BarMode'), s:commandList)
|