From 3f876efce5d8dd46f8664313bbc91c4122d7ee3c Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 29 Jan 2022 12:47:41 +0100 Subject: tests: use main parsers instead of nvim-treesitter parser for tests --- tests/query/highlights_spec.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/query/highlights_spec.lua') diff --git a/tests/query/highlights_spec.lua b/tests/query/highlights_spec.lua index 29bfc7c8d..c3c7d1530 100644 --- a/tests/query/highlights_spec.lua +++ b/tests/query/highlights_spec.lua @@ -1,6 +1,5 @@ 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 ts_utils = require "nvim-treesitter.ts_utils" local parsers = require "nvim-treesitter.parsers" @@ -22,11 +21,8 @@ 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 '" + .. vim.api.nvim_get_runtime_file("parser/" .. lang .. ".so", false)[1] + .. "' -s '" .. file .. "' -c " .. comment_node -- cgit v1.2.3-70-g09d2