vim:ftplug:wiki: Fix completion with Tab

This commit is contained in:
2024-11-06 02:37:06 +01:00
parent 22b774b839
commit 965786d19a

View File

@@ -13,3 +13,11 @@ function! MdSectionFold()
return depth ? ">" . depth : "="
endfunction
setlocal foldmethod=expr foldexpr=MdSectionFold()
inoremap <silent><buffer><expr> <Tab>
\ coc#pum#visible() ? CocPumNext(1) :
\ CheckBackspace() ? "<Plug>VimwikiTableNextCell" :
\ coc#refresh()
inoremap <silent><buffer><expr> <S-Tab>
\ coc#pum#visible() ? CocPumPrev(1) :
\ "<Plug>VimwikiTablePrevCell"