Add some completion-nvim keybinds
This commit is contained in:
parent
0d2ac08fc7
commit
4c4efe9191
|
@ -12,8 +12,11 @@ map('n', '<C-f>', '<cmd>Files<CR>')
|
|||
map('n', '<C-g>', '<cmd>Rg<CR>')
|
||||
|
||||
-- Completion
|
||||
-- Navigate completions with tab and shift tab
|
||||
map('i', '<S-Tab>', 'pumvisible() ? "\\<C-p>" : "\\<Tab>"', {expr = true})
|
||||
map('i', '<Tab>', 'pumvisible() ? "\\<C-n>" : "\\<Tab>"', {expr = true})
|
||||
-- Trigger completion
|
||||
map('i', '<C-SPACE>', '<Plug>(completion_trigger)', {silent = true, expr = true})
|
||||
|
||||
-- Navigate between buffers
|
||||
map('n', '<C-N>', ':bn<CR>', {silent = true})
|
||||
|
|
Loading…
Reference in a new issue