From 83210fa412b5b63a6e7717ae576536b7a10f6aef Mon Sep 17 00:00:00 2001 From: RafaƂ Camlet Date: Sat, 15 Aug 2020 19:32:10 +0200 Subject: fix: check 'after' against third directory --- lua/nvim-treesitter/query.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index dcfb7ec45..c630b366c 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -74,7 +74,7 @@ local function filter_files(file_list) for _, fname in ipairs(file_list) do -- Only get the name of the directory containing the queries directory - if vim.fn.fnamemodify(fname, ":p:h:h:t") == "after" then + if vim.fn.fnamemodify(fname, ":p:h:h:h:t") == "after" then table.insert(after, fname) -- The first one is the one with most priority elseif #main == 0 then -- cgit v1.2.3-70-g09d2