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