summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorRafaƂ Camlet <raf.camlet@gmail.com>2020-08-15 19:32:10 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-08-15 22:03:33 +0200
commit83210fa412b5b63a6e7717ae576536b7a10f6aef (patch)
tree556ae63dbf35b133550d66c44179ca05e9a87d14 /lua
parent994baf45396972d9eb6b918e0757d2eceecc8130 (diff)
fix: check 'after' against third directory
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/query.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua
index dcfb7ec4..c630b366 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