Closed zhongjis closed 1 month ago
The follow
option means that the cursor in the trouble window will follow
where you are in the buffer.
The option you want is auto_refresh=false
, so :Trouble toggle lsp_references auto_refresh=false
.
You can toggle auto_refresh
in a trouble buffer with R
. And force a refresh with r
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0 commit 7acf39ddab8ebdb63ebf78ec980149d20783fd4b
Operating system/version
MacOS 14.4.1
Describe the bug
for some reason,
follow=false
config is not working for me.with this setup I was expecting when I run
Trouble lsp_references toggle
, the result trouble list will not be refreshed when I move my cursor. I was hoping the list do not change until I manually refresh/re-toggle the trouble list. This happens with other lsp related lists.My idea of using
follow=false
is from #391I also tried manually set the
follow
usingTrouble lsp_references toggle follow=false
, but the behavior persistSteps To Reproduce
Trouble lsp_references toggle
or my keymapgr
, I usedmap
function on line 46Expected Behavior
when cursor moved, the trouble list should not be refreshed.
Repro