-
Notifications
You must be signed in to change notification settings - Fork 174
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
LSP rename errors, when using dressing.nvim vim.ui.input #68
Comments
I briefly had some issues with 'dressing.nvim' in my full setup, but it worked with minimal setup (only 'dressing.nvim' and some 'mini.nvim' module set up). Could you, please, try to narrow it down to a minimal config that at least somehow indicates that the problem is indeed in some of 'mini.nvim' modules? Something like "Before adding the module it works, but not after"? |
Sure, I will try to narrow it down. In addition, thanks for this awesome plugin collection! |
Thanks. I think I'll have some time tomorrow to try and find whether it is a 'mini.nvim' issue. By the way, congratulations on your first Github issue! This helps a lot! |
So I found the culprit, it is related to mini.completion, reproducable with the following config
now move to a symbol which you want rename and call
twice to rename the symbol. It will fail on the second try. If you remove the line
from the config everything works as intended. |
Yay loooong time lurker 😄 |
Great, thanks! That helped a lot. I seems like autocompletion from 'mini.completion' doesn't play nice with 'dressing.nvim'. I think it might be due to somewhat complex handling of completion in 'dressing.nvim', but will investigate further. If you can live without completion in the input, try adding this line to your config: vim.cmd('au FileType DressingInput lua vim.b.minicompletion_disable = true') It disables completion altogether in these popups. Meanwhile, I'll try to find a possibly better solution. |
Nice, I am completely fine with this workaround. |
I looked through 'dressing.nvim' code and it seems that disabling an external completion is the preferred solution at the moment. Opened an issue there to clarify. |
Contributing guidelines
Module(s)
mini.cursorword mini.indentscope
Description
In combation with vim.ui.input from dressing.nvim LSP renaming issues, see attached logs and gif
![bug](https://user-images.githubusercontent.com/261473/166109535-c0707d67-5dcc-4bc2-a644-cff5dcd9a4b8.gif)
bug.log
Neovim version
v0.8.0-dev+6-gae325e627
Steps to reproduce
Unfortunately, I am not sure if it is a issue with some mini module or with dressing.nvim (or related to vim/matchparen.vim). In order to reproduce, do a LSP rename more than once in an open buffer, with dressing.nvim, mini.indentscope and mini.cursorword enabled
Expected behavior
I should be able to do a LSP rename more than once, with dressing.nvim enabled.
Actual behavior
I can only do a LSP rename once with with dressing.nvim enabled.
The text was updated successfully, but these errors were encountered: