|
|
@ -1,12 +1,10 @@
|
|
|
|
local libmodal = require('libmodal')
|
|
|
|
local libmodal = require 'libmodal'
|
|
|
|
|
|
|
|
|
|
|
|
-- recurse counter
|
|
|
|
-- recurse counter
|
|
|
|
local foo_mode_recurse = 0
|
|
|
|
local foo_mode_recurse = 0
|
|
|
|
|
|
|
|
|
|
|
|
-- register 'z' as the map for recursing further (by calling the FooMode function again)
|
|
|
|
-- register 'z' as the map for recursing further (by calling the FooMode function again)
|
|
|
|
local foo_mode_keymaps =
|
|
|
|
local foo_mode_keymaps = {z = 'lua FooMode()'}
|
|
|
|
{
|
|
|
|
|
|
|
|
z = 'lua FooMode()'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- define the FooMode() function which is called whenever the user presses 'z'
|
|
|
|
-- define the FooMode() function which is called whenever the user presses 'z'
|
|
|
|
function FooMode()
|
|
|
|
function FooMode()
|
|
|
|