Mercurial > dotfiles
comparison dot_config/nvim/plugin/config.vim @ 425:10916f9b1676
Replace delimitMate with nvim-autopairs
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 28 Jul 2021 11:42:54 +0200 |
parents | 5683e8e3e361 |
children | 5a296952f248 |
comparison
equal
deleted
inserted
replaced
424:f42ea4c4a78c | 425:10916f9b1676 |
---|---|
736 function! s:check_back_space() abort | 736 function! s:check_back_space() abort |
737 let col = col('.') - 1 | 737 let col = col('.') - 1 |
738 return !col || getline('.')[col - 1] =~# '\s' | 738 return !col || getline('.')[col - 1] =~# '\s' |
739 endfunction | 739 endfunction |
740 | 740 |
741 " let g:completion_confirm_key_rhs = "\<Plug>delimitMateCR" | |
742 let g:completion_confirm_key = "" | |
743 imap <expr> <CR> (pumvisible() ? (complete_info()["selected"] != "-1" ? "\<Plug>(completion_confirm_completion)" : "\<Plug>delimitMateCR") : "\<Plug>delimitMateCR") | |
744 | |
745 " Auto close popup menu when finish completion | 741 " Auto close popup menu when finish completion |
746 autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif | 742 autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif |
747 | 743 |
748 " Use <Tab> and <S-Tab> to navigate through popup menu | 744 " Use <Tab> and <S-Tab> to navigate through popup menu |
749 inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | 745 inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" |