mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-14 18:12:52 +00:00
21 lines
392 B
Lua
21 lines
392 B
Lua
local libmodal = require('libmodal')
|
|
local barModeRecurse = 0
|
|
|
|
function barMode()
|
|
local uinput = string.char(vim.api.nvim_get_var(
|
|
'bar' .. tostring(barModeRecurse) .. 'ModeInput'
|
|
))
|
|
|
|
if uinput == 'z' then
|
|
barModeRecurse = barModeRecurse + 1
|
|
enter()
|
|
barModeRecurse = barModeRecurse - 1
|
|
end
|
|
end
|
|
|
|
function enter()
|
|
libmodal.mode.enter('BAR' .. barModeRecurse, barMode)
|
|
end
|
|
|
|
enter()
|