1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
28c0e1cc0d Add CoC GoTo code navigation. 2025-11-13 08:20:10 +01:00
f237920714 Add CoC renaming bind. 2025-11-13 08:18:06 +01:00

View File

@@ -90,6 +90,15 @@ nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)
nmap <silent> ]f <Plug>(coc-fix-current)
" 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)
" Temporary!!! Remove after CoC update
let storage_file = stdpath('data') . '/coc-localstorage'
let g:coc_node_args = ['--localstorage-file=' . storage_file]