-
-
Notifications
You must be signed in to change notification settings - Fork 955
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
![screenshot_2024-03-03_15:01:19](./?url=aHR0cHM6Ly9wcml2YXRlLXVzZXItaW1hZ2VzLmdpdGh1YnVzZXJjb250ZW50LmNvbS83NDExMDkvMzA5NTU1MzQzLTNjZmMxMzM5LTMzNDQtNGJmMS05ODNiLWUwZTc4YzBiNGZkZS5wbmc/and0PWV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpwYzNNaU9pSm5hWFJvZFdJdVkyOXRJaXdpWVhWa0lqb2ljbUYzTG1kcGRHaDFZblZ6WlhKamIyNTBaVzUwTG1OdmJTSXNJbXRsZVNJNkltdGxlVFVpTENKbGVIQWlPakUzTWpZeE1qSTJPRGNzSW01aVppSTZNVGN5TmpFeU1qTTROeXdpY0dGMGFDSTZJaTgzTkRFeE1Ea3ZNekE1TlRVMU16UXpMVE5qWm1NeE16TTVMVE16TkRRdE5HSm1NUzA1T0ROaUxXVXdaVGM0WXpCaU5HWmtaUzV3Ym1jX1dDMUJiWG90UVd4bmIzSnBkR2h0UFVGWFV6UXRTRTFCUXkxVFNFRXlOVFltV0MxQmJYb3RRM0psWkdWdWRHbGhiRDFCUzBsQlZrTlBSRmxNVTBFMU0xQlJTelJhUVNVeVJqSXdNalF3T1RFeUpUSkdkWE10WldGemRDMHhKVEpHY3pNbE1rWmhkM00wWDNKbGNYVmxjM1FtV0MxQmJYb3RSR0YwWlQweU1ESTBNRGt4TWxRd05qSTJNamRhSmxndFFXMTZMVVY0Y0dseVpYTTlNekF3SmxndFFXMTZMVk5wWjI1aGRIVnlaVDAxT1RrelpEVXdOalZsTTJSall6TmhZMkk1TkdVMU5qZzBabVUwWWpZNVltWTJZamRoWlRjMk56VXlZV0ZtT0RRME5UaGxZakprT1RaalpXRXlOVGt4SmxndFFXMTZMVk5wWjI1bFpFaGxZV1JsY25NOWFHOXpkQ1poWTNSdmNsOXBaRDB3Sm10bGVWOXBaRDB3Sm5KbGNHOWZhV1E5TUNKOS5PeUhKMjVFcjlZSTdWRXc4alRLTTVqZTM3cmJSZHpTREFIREF4QUtPc0FB&__proxy_form=0)
No it is not:
Please update the instructions.
The text was updated successfully, but these errors were encountered: