nvim-libmodal/examples/lua/prompt-commands.lua
2022-04-26 11:33:37 -04:00

14 lines
256 B
Lua

local libmodal = require 'libmodal'
-- define commands through a dictionary
local commands =
{
new = 'tabnew',
close = 'tabclose',
last = 'tablast',
exit = 'let g:fooModeExit = v:true',
}
-- begin the prompt
libmodal.prompt.enter('FOO', commands)