From 7f5a49f7c4699bb57635a36869f5149af491e761 Mon Sep 17 00:00:00 2001 From: kiyan Date: Tue, 12 Oct 2021 19:44:51 +0200 Subject: [PATCH] fix: filter also supports ext with other characters than words --- lua/nvim-tree/populate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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