mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
fix: check 'after' against third directory
This commit is contained in:
parent
994baf4539
commit
83210fa412
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ local function filter_files(file_list)
|
||||||
|
|
||||||
for _, fname in ipairs(file_list) do
|
for _, fname in ipairs(file_list) do
|
||||||
-- Only get the name of the directory containing the queries directory
|
-- 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)
|
table.insert(after, fname)
|
||||||
-- The first one is the one with most priority
|
-- The first one is the one with most priority
|
||||||
elseif #main == 0 then
|
elseif #main == 0 then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue