You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way to fix this was to rewrite the nvim-tree.api.node.open.preview function and comment the edit:
--- Rewrite of nvim-tree open_or_expand_or_dir_up
--- so it does not open the preview in the background
---@param mode string
---@return fun(node: table)
local function open_or_expand_or_dir_up(mode, toggle_group)
local lib = require 'nvim-tree.lib'
local actions = require 'nvim-tree.actions'
return function(node)
if node.name == '..' then
actions.root.change_dir.fn '..'
elseif node.nodes then
lib.expand_or_collapse(node, toggle_group)
end
-- elseif not toggle_group then
-- edit(mode, node)
-- end
end
end
Hey, I followed the doc but in my case I still have the preview when using tab.
part of my config:
nvim-tree config:
in customTreeFunc.keymaps I have all keymapping and the TAB:
The only way to fix this was to rewrite the nvim-tree.api.node.open.preview function and comment the edit:
I hope their is e better way
can check config: personal kickstart
The text was updated successfully, but these errors were encountered: