diff --git a/lua/nvim-tree/populate.lua b/lua/nvim-tree/populate.lua index 656a4791..28377965 100644 --- a/lua/nvim-tree/populate.lua +++ b/lua/nvim-tree/populate.lua @@ -142,7 +142,7 @@ local function gen_ignore_check(cwd) return true end - local idx = path:match(".+()%.%w+$") + local idx = path:match(".+()%.[^.]+$") if idx then if ignore_list['*'..string.sub(path, idx)] == true then return true end end