nvim-libmodal/lua/libmodal/init.lua
2020-05-26 15:48:44 -04:00

37 lines
551 B
Lua

--[[
/*
* MODULE
*/
--]]
local libmodal = require('libmodal/src')
--[[
/*
* MIRRORS
*/
--]]
libmodal.layer = {['enter'] = function(keymap)
local layer = libmodal.Layer.new(keymap)
layer:enter()
return function() layer:exit() end
end}
libmodal.mode = {['enter'] = function(name, instruction, ...)
libmodal.Mode.new(name, instruction, ...):enter()
end}
libmodal.prompt = {['enter'] = function(name, instruction, ...)
libmodal.Prompt.new(name, instruction, ...):enter()
end}
--[[
/*
* PUBLICIZE MODULE
*/
--]]
return libmodal