Compare commits
5 Commits
648c5320a7
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fc078fd3b | |||
| 7439b8f0a7 | |||
| 6ab3026ae1 | |||
| 28c0e1cc0d | |||
| f237920714 |
17
init.vim
17
init.vim
@@ -59,13 +59,13 @@ endfunction
|
||||
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||
\ coc#refresh()
|
||||
inoremap <silent><expr> <S-TAB>
|
||||
\ coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||
\ coc#pum#visible() ? coc#pum#prev(1) :
|
||||
\ CheckBackspace() ? "\<S-Tab>" :
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||
\ coc#refresh()
|
||||
let g:coc_disable_startup_warning = 1
|
||||
|
||||
@@ -90,9 +90,14 @@ nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
||||
nmap <silent> ]f <Plug>(coc-fix-current)
|
||||
|
||||
" Temporary!!! Remove after CoC update
|
||||
let storage_file = stdpath('data') . '/coc-localstorage'
|
||||
let g:coc_node_args = ['--localstorage-file=' . storage_file]
|
||||
" Symbol renaming
|
||||
nmap <leader>rn <Plug>(coc-rename)
|
||||
|
||||
" GoTo code navigation
|
||||
nmap <silent><nowait> gd <Plug>(coc-definition)
|
||||
nmap <silent><nowait> gy <Plug>(coc-type-definition)
|
||||
nmap <silent><nowait> gi <Plug>(coc-implementation)
|
||||
nmap <silent><nowait> gr <Plug>(coc-references)
|
||||
|
||||
" syntax highlighting
|
||||
syntax on
|
||||
|
||||
Reference in New Issue
Block a user