We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e89276 commit f9a0c3cCopy full SHA for f9a0c3c
lua/nvim-tree/actions/finders/find-file.lua
@@ -3,6 +3,7 @@ local view = require "nvim-tree.view"
3
local utils = require "nvim-tree.utils"
4
local renderer = require "nvim-tree.renderer"
5
local core = require "nvim-tree.core"
6
+local watch = require "nvim-tree.explorer.watch"
7
local Iterator = require "nvim-tree.iterators.node-iterator"
8
9
local M = {}
@@ -28,6 +29,8 @@ function M.fn(fname)
28
29
30
local absolute_paths_searched = {}
31
32
+ watch.refresh_path(vim.fn.fnamemodify(fname, ":h"))
33
+
34
local found = Iterator.builder(core.get_explorer().nodes)
35
:matcher(function(node)
36
return node.absolute_path == fname_real or node.link_to == fname_real
0 commit comments