Closed Kaiser-Yang closed 1 month ago
For problem 1, what's the output of :verbose imap <cr>
?
For problem 2, clangd didn't support foldingRange
that needed to do folding.
For problem 1, what's the output of
:verbose imap <cr>
?For problem 2, clangd didn't support
foldingRange
that needed to do folding.
The output of :verbose imap <CR>
in a vimwiki
file:
Your <CR>
mapping was conflict with auto-pairs. You can disable auto-pairs' mapping with let g:AutoPairsMapCR = 0
.
For problem 1, what's the output of
:verbose imap <cr>
?For problem 2, clangd didn't support
foldingRange
that needed to do folding.Your
<CR>
mapping was conflict with auto-pairs. You can disable auto-pairs' mapping withlet g:AutoPairsMapCR = 0
.
Thank you for your replies. I think it has nothing to do with auto-pairs's mapping, because when in other files (such as a C/C++
file) the auto-pairs' mapping is still here.
But, luckily, I think I've found the solution for the problem 2
throuth adding those at my configurations of vimwiki
:
" close lists_return
let g:vimwiki_key_mappings = { 'lists_return': 0, }
" remap lists_return
autocmd FileType vimwiki inoremap <silent><buffer><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
\: "\<C-]>\<Esc>:VimwikiReturn 3 5\<CR>"
autocmd FileType vimwiki inoremap <silent><buffer> <S-CR>
\ <Esc>:VimwikiReturn 2 2<CR>
Problem 1
I can not use
<CR>
to confirm a completion, when I am in avimwiki
file.I've uploaded an issue at
vimwiki
. The issue and my configurations are here.Problem 2
I follow the example to add
Fold
command:And I use![image](https://github.com/neoclide/coc.nvim/assets/58209855/68580f06-ad15-4f18-9ea0-9aaf3bdd6128)
coc-clangd
. When I use<leader>f
, it gives me as the following:And I asked
gpt
, it told me that I should add those:But this does not work. Some configurations about
coc-clangd
: