Closed yelinaung closed 2 years ago
After updating the Coc.nvim version, the Sourcery vim plugin no longer works due to Coc.nvim removal of CocAction and CoCFix commands. Reference: https://github.com/neoclide/coc.nvim/blob/72095ac4b96f4bef3809cafcaeddcaad074f7bcf/history.md#2022-05-24
CocAction
CoCFix
$ sourcery --version sourcery, version 0.12.0
Neovim
$ nvim --version NVIM v0.8.0-dev
Ubuntu Linux
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.10 Release: 21.10 Codename: impish
To replace the removed commands with the new commands
nnoremap <leader>cf :CocFix<cr> to nnoremap <leader>cf <Plug>(coc-fix-current) nnoremap <leader>ch :call CocAction('doHover')<cr> to nnoremap <leader>ch :call CocActionAsync('doHover') <cr>
nnoremap <leader>cf :CocFix<cr>
nnoremap <leader>cf <Plug>(coc-fix-current)
nnoremap <leader>ch :call CocAction('doHover')<cr>
nnoremap <leader>ch :call CocActionAsync('doHover') <cr>
based on https://github.com/neoclide/coc.nvim/discussions/3530
Thanks for spotting this - this will be fixed soon
Resolved with release of 0.12.1
Issue description or question
After updating the Coc.nvim version, the Sourcery vim plugin no longer works due to Coc.nvim removal of
CocAction
andCoCFix
commands. Reference: https://github.com/neoclide/coc.nvim/blob/72095ac4b96f4bef3809cafcaeddcaad074f7bcf/history.md#2022-05-24Sourcery Version
Code editor or IDE name and version
Neovim
OS name and version
Ubuntu Linux
Suggestion
To replace the removed commands with the new commands
nnoremap <leader>cf :CocFix<cr>
tonnoremap <leader>cf <Plug>(coc-fix-current)
nnoremap <leader>ch :call CocAction('doHover')<cr>
tonnoremap <leader>ch :call CocActionAsync('doHover') <cr>
based on https://github.com/neoclide/coc.nvim/discussions/3530