legendary.nvim icon indicating copy to clipboard operation
legendary.nvim copied to clipboard

Create a parser to convert Vimscript keymaps into legendary tables

Open mrjones2014 opened this issue 2 years ago • 0 comments

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.

mrjones2014 avatar Mar 14 '22 18:03 mrjones2014