You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice for users to pass in key mappings for commands in VGit. Based on how users instantiate the plugin, this could be a nice alternative that our plugin provides. An example of an interface might look like this:
function set_keymap(mode, key, action)
options = options or {}
vim.api.nvim_set_keymap(mode, key, action, {
noremap = true,
silent = true
})
end
The function above can then be used to create something like this:
keymap = {
'<mode> <key>' = 'hunk_down',
'n <c-k' = function(vgit) vgit.hunk_up() end
}
The text was updated successfully, but these errors were encountered:
It would be nice for users to pass in key mappings for commands in VGit. Based on how users instantiate the plugin, this could be a nice alternative that our plugin provides. An example of an interface might look like this:
The function above can then be used to create something like this:
The text was updated successfully, but these errors were encountered: