We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c68ae5 commit 93fcf0aCopy full SHA for 93fcf0a
lua/neo-tree/sources/common/preview.lua
@@ -393,7 +393,8 @@ Preview.toggle = function(state)
393
local preview_event = {
394
event = events.VIM_CURSOR_MOVED,
395
handler = function()
396
- if not toggle_state or vim.api.nvim_get_current_win() == instance.winid then
+ local did_enter_preview = vim.api.nvim_get_current_win() == instance.winid
397
+ if not toggle_state or (did_enter_preview and instance.config.use_float) then
398
return
399
end
400
if vim.api.nvim_get_current_win() == winid then
0 commit comments