This commit is contained in:
2026-01-29 17:59:31 -10:00
parent 9f25569788
commit c9494906ca
3 changed files with 27 additions and 5 deletions
+4 -5
View File
@@ -16,17 +16,16 @@ return {
},
{
"nvim-treesitter/nvim-treesitter",
branch = "main",
build = ":TSUpdate",
config = function()
local langs = { "clojure", "fennel", "lua", "vim", "vimdoc", "query" }
-- Install parsers asynchronously on first load
vim.schedule(function()
local installed = require("nvim-treesitter").get_installed()
for _, lang in ipairs(langs) do
if not vim.list_contains(installed, lang) then
require("nvim-treesitter").install(lang)
end
local ok, ts = pcall(require, "nvim-treesitter")
if ok and ts.install then
ts.install(langs)
end
end)