fix autopairs completion

This commit is contained in:
Christoph J. Scherr 2023-07-13 14:54:42 +02:00
parent 947f54c6ec
commit 6d3d680158
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
2 changed files with 4 additions and 4 deletions

View File

@ -4,3 +4,7 @@ local Rule = require('nvim-autopairs.rule')
local npairs = require('nvim-autopairs') local npairs = require('nvim-autopairs')
npairs.add_rule(Rule("<>","<>","rs")) npairs.add_rule(Rule("<>","<>","rs"))
EOF EOF
" fix <CR> being not usable to select a completion item
inoremap <silent><expr> <cr> coc#pum#visible() ? coc#pum#confirm() :
\ "\<C-g>u\<c-r>=v:lua.require'nvim-autopairs'.autopairs_cr()\<CR>"

View File

@ -26,7 +26,3 @@ Plug 'lambdalisue/suda.vim'
"Plug 'dense-analysis/ale' "Plug 'dense-analysis/ale'
call plug#end() call plug#end()
lua << EOF
require("nvim-autopairs").setup {}
EOF