Skip to content

Commit

Permalink
rodrigo/default: Add config to Coc shortcut key on neovim
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo M. Duarte <[email protected]>
  • Loading branch information
mdrodrigo authored and otavio committed Jul 6, 2023
1 parent 5503c2e commit 86b0b69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions users/rodrigo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@
set expandtab
set tabstop=4
set shiftwidth=4
" Coc Key configs
inoremap <silent><expr> <C-n> coc#pum#visible() ? coc#pum#next(1) : "\<C-n>"
inoremap <silent><expr> <C-p> coc#pum#visible() ? coc#pum#prev(1) : "\<C-p>"
inoremap <silent><expr> <down> coc#pum#visible() ? coc#pum#next(0) : "\<down>"
inoremap <silent><expr> <up> coc#pum#visible() ? coc#pum#prev(0) : "\<up>"
inoremap <silent><expr> <C-e> coc#pum#visible() ? coc#pum#cancel() : "\<C-e>"
inoremap <silent><expr> <C-y> coc#pum#visible() ? coc#pum#confirm() : "\<C-y>"
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
'';
};

Expand Down

0 comments on commit 86b0b69

Please sign in to comment.