mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -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
|
||||
-- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue