windwp/windline.nvim

FloatToggle conflicts with nvim tree window picker feature

ray-x opened this issue ยท 3 comments

ray-x commented

image

Float wind prevent above message been show when trying to open a file from nvimtree with vertical split enabled.

:) you can count window and press blind key a,b,c ๐Ÿ˜๐Ÿ˜๐Ÿ˜

ray-x commented

Yes, it is true. never mind.

i have some cheat.

local treeutils = require('nvim-tree.utils')
local fl = require('wlfloatline')

_G._tree_get_user_input_char = _G._tree_get_user_input_char or treeutils.get_user_input_char
treeutils.get_user_input_char = function ()
    fl.floatline_hide()
    local char = _G._tree_get_user_input_char()
    fl.floatline_on_resize()
    return char
end

you can disable the picker
vim.g.nvim_tree_disable_window_picker=0