nvim: keymappings: Use arrow keys to navigate popup menu
This commit is contained in:
parent
426cdd7ee8
commit
0f51ccdf6b
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ remap('n', '<BS>', '<C-^>', opts)
|
|||
remap('c', '<Tab>' , 'getcmdtype() =~ \'[?/]\' ? \'<C-g>\' : feedkeys(\'<Tab>\' , \'int\')[1]', expr_opts)
|
||||
remap('c', '<S-Tab>', 'getcmdtype() =~ \'[?/]\' ? \'<C-t>\' : feedkeys(\'<S-Tab>\', \'int\')[1]', expr_opts)
|
||||
|
||||
-- Use arrow keys to navigate in popup menu
|
||||
remap('c', '<Up>' , 'pumvisible() ? feedkeys(\'<S-Tab>\', \'int\')[1] : \'<Up>\'' , expr_opts)
|
||||
remap('c', '<Down>', 'pumvisible() ? feedkeys(\'<Tab>\' , \'int\')[1] : \'<Down>\'', expr_opts)
|
||||
|
||||
remap('n', '<F2>', ':TSHighlightCapturesUnderCursor<CR>', opts)
|
||||
|
||||
-- After shifting a visual block, select it again
|
||||
|
|
Loading…
Reference in a new issue