2023-07-13 14:36:54 +02:00
|
|
|
lua << EOF
|
|
|
|
require("nvim-autopairs").setup {}
|
|
|
|
local Rule = require('nvim-autopairs.rule')
|
|
|
|
local npairs = require('nvim-autopairs')
|
|
|
|
npairs.add_rule(Rule("<>","<>","rs"))
|
|
|
|
EOF
|
2023-07-13 14:54:42 +02:00
|
|
|
|
|
|
|
" 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>"
|