Add more tests

pull/7/head
Iron-E 4 years ago
parent 8d99e05af5
commit d35778cf91
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -15,5 +15,8 @@ function FooMode()
fooModeRecurse = fooModeRecurse - 1
end
-- Define the character 'f' as the function we defined— but directly through lua, instead of vimL.
fooModeCombos['f'] = FooMode
-- Call FooMode() initially to begin the demo.
FooMode()

@ -1,17 +1,12 @@
-- Import
local libmodal = require('libmodal')
-- A function, which when called, goes to the first tab.
local function _first()
vim.api.nvim_command('tabfirst')
end
-- Define commands through a dictionary.
local commands = {
['new'] = 'tabnew',
['close'] = 'tabclose',
['last'] = 'tablast',
['first'] = _first
['exit'] = libmodal.utils.api.mode_exit
}
-- Begin the prompt.

Loading…
Cancel
Save