fix autopairs completion
This commit is contained in:
parent
947f54c6ec
commit
6d3d680158
|
@ -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>"
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue