feat: add comments

main
mandlm 2021-08-03 08:47:01 +02:00
parent 489308c643
commit f70fc73dec
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@ Plug 'vimwiki/vimwiki'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" typescript syntax highlighting
Plug 'HerringtonDarkholme/yats.vim'
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
@ -156,7 +157,7 @@ nmap <silent> gr <Plug>(coc-references)
nmap <silent> ga <Plug>(coc-codeaction)
nmap <silent> <leader>rn <Plug>(coc-rename)
" use <tab> for trigger completion and navigate to the next complete item
" use <tab> for trigger completion and navigate to the next complete item {{{
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
@ -171,6 +172,7 @@ inoremap <silent><expr> <S-Tab>
\ pumvisible() ? "\<C-p>" :
\ <SID>check_back_space() ? "\<S-Tab>" :
\ coc#refresh()
" }}}
" select completion items with enter
inoremap <silent><expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"