mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-18 15:25:49 +00:00
afdfadf365
BREAKING CHANGE: now requires Neovim 0.5
14 lines
267 B
Lua
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)
|