nvim-libmodal/examples/lua/prompt-commands.lua
Iron-E afdfadf365
ref: use Neovim 0.5
BREAKING CHANGE: now requires Neovim 0.5
2021-07-07 14:25:53 -04:00

14 lines
267 B
Lua

-- Import
local libmodal = require 'libmodal'
-- Define commands through a dictionary.
local commands = {
new = 'tabnew',
close = 'tabclose',
last = 'tablast',
exit = libmodal.utils.api.mode_exit
}
-- Begin the prompt.
libmodal.prompt.enter('FOO', commands)