-
-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coc-rename - moves the cursor to the start of the first line #4922
Comments
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
|
Tested with vim 9.1 with your mini vimrc, can't reproduce it.
|
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.
When I remove the line Here is my setup vim --version
contents of :CocInfo
|
@wickedmic upgrade your coc.nvim and try again. |
Still can't reproduce with |
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's packed editorconfig is outdated.
But it's strange that, vim built with brew on macOS can't reproduce this. Don't use |
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.
The text was updated successfully, but these errors were encountered: