legendary.nvim
legendary.nvim copied to clipboard
Create a parser to convert Vimscript keymaps into legendary tables
Theoretically we should be able to parse a Vimscript keymap in the form:
vnoremap <leader>t :DoSomethingWithLeaderT<CR>
and convert that into the equivalent legendary keymap table:
{
'<leader>t',
':DoSomethingWithLeaderT<CR>',
mode = 'v',
opts = {
noremap = true,
},
}
We would need to take into consideration all the different options and types of mapping commands in order to set all the right options on the table.