Skip to content

Commit

Permalink
match on filename instead of entire path
Browse files Browse the repository at this point in the history
  • Loading branch information
ava5627 committed Feb 18, 2024
1 parent bf07615 commit 3804f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ local function setup_autocommands(opts)
callback = function()
for _, value in pairs(_config.update_focused_file.exclude) do
local ft = vim.api.nvim_buf_get_option(0, "filetype")
local path = vim.fn.expand "%:p"
local path = vim.fn.expand "%:t"
if utils.str_find(path, value) or utils.str_find(ft, value) then
return
end
Expand Down

0 comments on commit 3804f31

Please sign in to comment.