aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-parsers.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-05-29 16:52:20 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit9c0a99819c99d70d28334dc6ea1c3ac773e4fed1 (patch)
tree24d6d9ebdf2b9aa9a11c9ee271fa5e80d96fe6da /scripts/install-parsers.lua
parentrefactor: rewrite installation using jobs and async (diff)
downloadnvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.gz
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.bz2
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.lz
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.xz
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.zst
nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.zip
ci: remove update-lockfile shell script
Diffstat (limited to 'scripts/install-parsers.lua')
-rwxr-xr-xscripts/install-parsers.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/install-parsers.lua b/scripts/install-parsers.lua
new file mode 100755
index 000000000..ab06e538f
--- /dev/null
+++ b/scripts/install-parsers.lua
@@ -0,0 +1,15 @@
+#!/usr/bin/env -S nvim -l
+
+vim.opt.runtimepath:append('.')
+
+-- needed on CI
+vim.fn.mkdir(vim.fn.stdpath('cache'), 'p')
+
+local done = false
+require('nvim-treesitter.install').install('all', {}, function()
+ done = true
+end)
+
+vim.wait(6000000, function()
+ return done
+end)