hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
567 stars 45 forks source link

cmp-cmdline should use mappings of nvim-cmp #31

Closed zbindenren closed 2 years ago

zbindenren commented 2 years ago

It would be great if mappings were taken from nvim-cmp configuration. Currently I have for example:

["<C-k>"] = cmp.mapping.select_prev_item(),
["<C-j>"] = cmp.mapping.select_next_item(),

But for cmp-cmdline I still have to use <tab>.

hrsh7th commented 2 years ago
["<C-k>"] = cmp.mapping(cmp.mapping.select_prev_item(), { 'i', 'c' }),