-
Notifications
You must be signed in to change notification settings - Fork 180
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(picker): lsp_symbols reverts options set with opt_local / setlocal #1524
Comments
You have to explicitly define the local window options you want in your snacks configuration. return {
"folke/snacks.nvim",
opts = {
picker = {
sources = {
lsp_symbols = {
win = {
preview = {
wo = {
relativenumber = false,
number = false,
},
},
},
},
},
},
},
} |
Ok I see what you mean now. I misunderstood your first comment. |
I believe it's this line here. I believe it should be
PS: I believe |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.2
Operating system/version
Fedora 40 (Linux)
Describe the bug
When using lsp_symbols with line numbers turned off buffer-wise (
setlocal nonumber norelativenumber
), lsp_symbols reverts turns line numbers back on. I imagine this happens with other buffer-local visual options.Steps To Reproduce
:setlocal nonumber norelativenumber
:lua Snacks.picker.lsp_symbols
Expected Behavior
Picker opens without changing options of unrelated buffer(s).
Repro
The text was updated successfully, but these errors were encountered: