1
0

Compare commits

...

5 Commits

View File

@@ -58,14 +58,14 @@ function! CheckBackspace() abort
endfunction endfunction
inoremap <silent><expr> <TAB> inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) : \ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" : \ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
\ CheckBackspace() ? "\<Tab>" : \ coc#refresh()
\ coc#refresh()
inoremap <silent><expr> <S-TAB> inoremap <silent><expr> <S-TAB>
\ coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>" \ coc#pum#visible() ? coc#pum#prev(1) :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
\ CheckBackspace() ? "\<S-Tab>" : \ CheckBackspace() ? "\<S-Tab>" :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
\ coc#refresh() \ coc#refresh()
let g:coc_disable_startup_warning = 1 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> ]g <Plug>(coc-diagnostic-next)
nmap <silent> ]f <Plug>(coc-fix-current) nmap <silent> ]f <Plug>(coc-fix-current)
" Temporary!!! Remove after CoC update " Symbol renaming
let storage_file = stdpath('data') . '/coc-localstorage' nmap <leader>rn <Plug>(coc-rename)
let g:coc_node_args = ['--localstorage-file=' . storage_file]
" 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 highlighting
syntax on syntax on