feat: add comments
parent
489308c643
commit
f70fc73dec
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue