From 901ffe1a363f21c168eacf011dce4f905fd26d5f Mon Sep 17 00:00:00 2001 From: Duncan McDougall Date: Mon, 20 Jun 2022 21:50:07 +0100 Subject: Add support for custom parser install locations #2959 (#3031) --- tests/query/injection_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/query/injection_spec.lua b/tests/query/injection_spec.lua index 7a98dd275..b10b7450f 100644 --- a/tests/query/injection_spec.lua +++ b/tests/query/injection_spec.lua @@ -1,6 +1,6 @@ require "nvim-treesitter.highlight" -- yes, this is necessary to set the hlmap local highlighter = require "vim.treesitter.highlighter" -local utils = require "nvim-treesitter.utils" +local configs = require "nvim-treesitter.configs" local ts_utils = require "nvim-treesitter.ts_utils" local parsers = require "nvim-treesitter.parsers" @@ -16,7 +16,7 @@ local function check_assertions(file) ) local assertions = vim.fn.json_decode( vim.fn.system( - "highlight-assertions -p '" .. utils.get_parser_install_dir() .. "/" .. lang .. ".so'" .. " -s '" .. file .. "'" + "highlight-assertions -p '" .. configs.get_parser_install_dir() .. "/" .. lang .. ".so'" .. " -s '" .. file .. "'" ) ) local parser = parsers.get_parser(buf, lang) -- cgit v1.2.3-70-g09d2