mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-10 13:10:29 +00:00
37 lines
551 B
Lua
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
|