You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
345 B
Lua
17 lines
345 B
Lua
local libmodal = require('libmodal')
|
|
|
|
local barModeRecurse = 0
|
|
|
|
local barModeCombos = {
|
|
['z'] = 'BarModeEnter',
|
|
}
|
|
|
|
function barMode()
|
|
barModeRecurse = barModeRecurse + 1
|
|
libmodal.mode.enter('BAR' .. barModeRecurse, barModeCombos)
|
|
barModeRecurse = barModeRecurse - 1
|
|
end
|
|
|
|
vim.api.nvim_command('command! BarModeEnter lua barMode()')
|
|
barMode()
|