We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.11.0
MacOS
As you can see in the video, scroll animation is weird when used with blink-cmp, here I use the code companion.nvm source with blink-cmp
When disabling snacks scroll, the issue gone
I hope to find a way to disable it only for the suggestion command or something like that
Disabling the scroll in the CodeCompanion buffer does not help.
The text was updated successfully, but these errors were encountered:
You can try the following (not 100% sure how it'll work)
local autocmd = vim.api.nvim_create_autocmd autocmd("InsertEnter", { callback = function() vim.g.snacks_scroll = false end, }) autocmd("InsertLeave", { callback = function() vim.g.snacks_scroll = true end, })
Sorry, something went wrong.
@dpetka2001 Thank you for your suggestion, It does work nicely.
I also wrote a manual filter based on the doc to disable scroll on some buffer types and file types as a workaround.
scroll = { filter = function(buf) local buftype_pattern = { "help", "lazy", "Oil", "neo-tree", "dashboard", "packer", "startify", "fzf", "fugitive", "spectre_panel", "CodeCompanion" } local filetype_pattern = { "nofile" } local buftype = vim.bo[buf].buftype local filetype = vim.bo[buf].filetype -- Check if buftype or filetype is in the exclude pattern for _, p in ipairs(buftype_pattern) do if buftype == p then return false end end for _, p in ipairs(filetype_pattern) do if filetype == p then return false end end return vim.g.snacks_scroll ~= false and vim.b[buf].snacks_scroll ~= false and buftype ~= "terminal" end, }
snacks.scroll has has some incompatibility with bordered float menu, here is a workaround Saghen/blink.cmp#1446
No branches or pull requests
Did you check docs and existing issues?
Neovim version (nvim -v)
0.11.0
Operating system/version
MacOS
Describe the bug
Screen.Recording.2025-04-04.at.22.15.08.mov
As you can see in the video, scroll animation is weird when used with blink-cmp, here I use the code companion.nvm source with blink-cmp
Steps To Reproduce
Expected Behavior
When disabling snacks scroll, the issue gone
I hope to find a way to disable it only for the suggestion command or something like that
Disabling the scroll in the CodeCompanion buffer does not help.
Repro
The text was updated successfully, but these errors were encountered: