nvim-libmodal/examples/lua/prompt-commands.lua

15 lines
268 B
Lua
Raw Normal View History

2020-08-27 16:10:01 +00:00
-- Import
local libmodal = require 'libmodal'
2020-08-27 16:10:01 +00:00
-- Define commands through a dictionary.
local commands =
{
new = 'tabnew',
close = 'tabclose',
last = 'tablast',
exit = 'let g:fooModeExit = v:true',
}
2020-08-27 16:10:01 +00:00
-- Begin the prompt.
2020-05-15 02:12:15 +00:00
libmodal.prompt.enter('FOO', commands)