feat: add comments
This commit is contained in:
parent
489308c643
commit
f70fc73dec
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ Plug 'vimwiki/vimwiki'
|
||||||
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
|
||||||
|
" typescript syntax highlighting
|
||||||
Plug 'HerringtonDarkholme/yats.vim'
|
Plug 'HerringtonDarkholme/yats.vim'
|
||||||
|
|
||||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
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> ga <Plug>(coc-codeaction)
|
||||||
nmap <silent> <leader>rn <Plug>(coc-rename)
|
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
|
function! s:check_back_space() abort
|
||||||
let col = col('.') - 1
|
let col = col('.') - 1
|
||||||
return !col || getline('.')[col - 1] =~ '\s'
|
return !col || getline('.')[col - 1] =~ '\s'
|
||||||
|
@ -171,6 +172,7 @@ inoremap <silent><expr> <S-Tab>
|
||||||
\ pumvisible() ? "\<C-p>" :
|
\ pumvisible() ? "\<C-p>" :
|
||||||
\ <SID>check_back_space() ? "\<S-Tab>" :
|
\ <SID>check_back_space() ? "\<S-Tab>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
|
" }}}
|
||||||
|
|
||||||
" select completion items with enter
|
" select completion items with enter
|
||||||
inoremap <silent><expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
inoremap <silent><expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
|
|
Loading…
Reference in a new issue