aboutsummaryrefslogtreecommitdiff
path: root/luax
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2024-01-14 16:52:58 +0100
committerStanisław Zagórowski <hasohasacz@gmail.com>2024-01-14 16:52:58 +0100
commitbeb295f9a3b5a4f38d8693e8016bf3f96efbf027 (patch)
tree114655d1505270347345d9ab34e0af23c448a6b1 /luax
parentdc6ab0e3e0e9d98b60f42b9e10f14013e753261a (diff)
markdown: try fixing nix highlighting
Diffstat (limited to 'luax')
-rw-r--r--luax/libs/markdown.lua2
1 files changed, 1 insertions, 1 deletions
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