Add some completion-nvim keybinds

This commit is contained in:
Marko Korhonen 2021-02-02 19:07:21 +02:00
parent 0d2ac08fc7
commit 4c4efe9191
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5

View file

@ -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})