Closed ObiWahn closed 3 months ago
I would still love to hear what you think could break the menu. Or give me some advice on how to debug the problem.
Since the editorconfig
package is part of the vim distribution and coc misbehaves if it is installed, I think it would be good if you would help resolving the issue.
set nocompatible
packadd! editorconfig
set runtimepath^=/home/obiwahn/nobackup/coc-test/coc.nvim
filetype plugin indent on
syntax on
set hidden
map <silent><F8> <Plug>(coc-rename)
map! <silent><F8> <C-O><Plug>(coc-rename)
Tested with vim 9.1 with your mini vimrc, can't reproduce it.
vim version: VIM - Vi IMproved 9.1 9010100
node version: v21.6.2
coc.nvim version: 0.0.82-bd303cf7 2024-03-01 18:31:10 +0800
coc.nvim directory: /Users/fannheyward/.local/share/nvim/plugged/coc.nvim
term: iTerm.app
platform: darwin
set nocompatible
packadd! editorconfig
set runtimepath^=~/.local/share/nvim/plugged/coc.nvim
set runtimepath^=~/src/coc-clangd
filetype plugin indent on
syntax on
set hidden
nmap <silent> gn <Plug>(coc-rename)
Hey everyone, I was able to reproduce the issue as described by @ObiWahn. When I use the following vimrc the rename dialog box appears at the top of the screen and my buffer is scrolled all the way to the top.
set nocompatible
packadd! editorconfig
set runtimepath^=/home/nandu/.vim/pack/plugins/start/coc.nvim
filetype plugin indent on
syntax on
set hidden
map <silent><F8> <Plug>(coc-rename)
map! <silent><F8> <C-O><Plug>(coc-rename)
When I remove the line packadd! editorconfig
the issue goes away (rename dialog box is at the line where the cursor was and my buffer stays where it was).
Here is my setup
0.0.82-d1568d56 2023-09-29 19:43:34 +0800
@wickedmic upgrade your coc.nvim and try again.
Still can't reproduce with packadd! editorconfig
, Vi IMproved 9.1 9010150
I can not reproduce the problem on mac with the latest homebrew vim. But it still happens on linux with the version in Debian/Sid.
It's reproducible on linux but in my case only in tsserver (coc-tsserver). In nil (nix-language-server) it works perfectly. vim --version: VIM - Vi IMproved 9.1 Included patches: 1-173. With sgur/vim-editorconfig it works everywhere, only with packadd editorconfig the problem occurs but only with tsserver in my case. Thanks for your work!
vim's packed editorconfig is outdated.
But it's strange that, vim built with brew on macOS can't reproduce this.
Don't use packadd! editorconfig
, use https://github.com/editorconfig/editorconfig-vim directly.
Result from CocInfo
1 ## versions 2 3 vim version: VIM - Vi IMproved 9.1 9010016 4 node version: v18.5.0 5 coc.nvim version: 0.0.82-bd303cf7 2024-03-01 18:31:10 +0800 6 coc.nvim directory: /home/obiwahn/.vim/bundles/available-github/coc.nvim 7 term: tmux 8 platform: linux 9 10 ## Log of coc.nvim 11 12 2024-03-03T13:53:10.872 WARN (pid:70141) [workspace] - Extension "coc-lists" registered synchronized autocmd "VimLeavePre", which could be slow. 13 2024-03-03T13:53:10.911 INFO (pid:70141) [plugin] - coc.nvim initialized with node: v18.5.0 after 293 14 2024-03-03T13:53:15.615 INFO (pid:70141) [attach] - receive notification: showInfo [] 15
Describe the bug
When starting a rename via(coc-rename) my buffer moves to the very top and as soon as the rename is done the cursor is not on the renamed word, but at the beginning of the first line.
Reproduce the bug
Please provide more information. I have moved my original directory out of the way and create a new dir.
Open some random c++ project and press F8 to rename variable
Screenshots
Actually when I added the
set nocompatible
(without it coc is broken) I had moved my.vim
dir already back. I wonder if it is ok to see theairline
plugin here. On the other hand not all configurations have been loaded as I had to use:set numbers
which is usually always on.UPDATE No it is not: Please update the instructions.