by selectnull · 5y ago · 0 comments
function bindKey(mode, keys, command, options)
options = options or {noremap = true, silent = true}
return vim.api.nvim_set_keymap(mode, keys, command, options)
end
With that, remapping looks like this: bindKey('n', '<Tab>', ':bnext<CR>')
Which is in my opinion better than Vim syntax. I definitely see the potential in having Lua as scripting language.