-
Notifications
You must be signed in to change notification settings - Fork 105
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
bug: signature_help covers the current line #930
Comments
I guess you could really just disable the functionality since something really similar (exactly the same?) is done in core now anyways. If you don't want that you should try to create a minimal repro. |
@max397574 Disabling hover and signature also removes it being auto triggered. There is some more highlights available in noice.nvim compared to the native. Mostly I miss auto trigger. |
simply create an autocmd for it vim.api.nvim_create_autocmd({ "TextChangedI", "TextChangedP", "InsertEnter" },{
callback=function()
vim.lsp.buf.signature_help()
end
}) |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
You could just set the {
"folke/noice.nvim",
opts = {
lsp = {
signature = {
opts = {
size = {
max_height = vim.api.nvim_win_get_height(0) / 2,
},
},
},
},
}
} should work I believe. |
Hi there! I would also rather keep using noice for consistency with the rest of the UI. Unfortunately the code from the comment above produces an error (Number is not an integer) and even if it did work it would break as soon as the split or window is resized. Plus this happens with width as well. It seems to me that it might have something to do with positioning. For example even if it does fit in the window as a whole, as soon as it overflows the split it gets bumped to the top of the window. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.11.0-nightly+b991319
Operating system/version
NixOS
Describe the bug
I have noticed this issue for a quite some time on LazyVim. I don't use any custom configuration for noice.nvim.
When filling parameters, signature_help is being automatically triggered and the popup covers the current line in Normal mode and in insert mode.
I can recreate this behavior with
vim.lsp.buf.hover()
vim.lsp.buf.signature_help()
2024-08-12_13-36-52.mp4
After disabling Noice.nvim, the popup is displayed correctly.
I can see people have had the same issue, but solutions suggests to disable the feature.
https://www.reddit.com/r/neovim/comments/ymdb5u/comment/iyhnxgy/?context=3
https://www.reddit.com/r/neovim/comments/12i9a3o/how_to_avoid_popup_covering_cursor_in_insert_mode/
Steps To Reproduce
Expected Behavior
Pop up should be opened without covering the current line. Overflow should be scrollable.
Repro
No response
The text was updated successfully, but these errors were encountered: