Open antonkesy opened 11 months ago
Hm yeah these options don't really go together. The way dismiss_on_move
works is:
Now, how focus_on_open
works:
vim.api.nvim_open_win
and the "focus" property set to trueThe issue:
Essentially, these options are mutually exclusive. I suppose a note in the readme mentioning this might be a good addition.
Describe the bug I've set
dismiss_on_move = true
but still got the default valuefocus_on_open = true
But now the preview window won't show anymore / auto closes instantly Iffocus_on_open = false
(the cursor is not moved) all works as expectedTo Reproduce Steps to reproduce the behavior:
dismiss_on_move = true
andfocus_on_open = true
Expected behavior Preview window to show dismiss-on-move to have only have an effect if cursor moved in the buffer which the goto is called from
Baseline (please complete the following information):
OS:
Linux X 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Neovim version:
my lazy plugin call
Additional context Not sure if this counts as a bug, is intended behavior or just a logic error in general on my part 🤷🏻