init
This commit is contained in:
+4
-5
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user