From beb295f9a3b5a4f38d8693e8016bf3f96efbf027 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Sun, 14 Jan 2024 16:52:58 +0100 Subject: markdown: try fixing nix highlighting --- luax/libs/markdown.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'luax') diff --git a/luax/libs/markdown.lua b/luax/libs/markdown.lua index ab42529..3fe90c1 100644 --- a/luax/libs/markdown.lua +++ b/luax/libs/markdown.lua @@ -1007,7 +1007,7 @@ local function highlight(lang, code) tmp_file:write(code) tmp_file:close() -- run tree-sitter highlight on the code with lang - local tree_sitter_output = io.popen("tree-sitter highlight -H " .. tmp_filename) + local tree_sitter_output = io.popen("/usr/bin/env tree-sitter highlight -H " .. tmp_filename) if not tree_sitter_output then error("Could not run tree-sitter highlight") end -- cgit v1.3.1