mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-25 10:18:47 +02:00
perf(treesitter): load treesitter early during startup when opening a file from the cmdline
This commit is contained in:
parent
8301096c31
commit
b29d169afb
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ return {
|
||||||
version = false, -- last release is way too old and doesn't work on Windows
|
version = false, -- last release is way too old and doesn't work on Windows
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
event = { "LazyFile", "VeryLazy" },
|
event = { "LazyFile", "VeryLazy" },
|
||||||
|
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
|
||||||
init = function(plugin)
|
init = function(plugin)
|
||||||
-- PERF: add nvim-treesitter queries to the rtp and it's custom query predicates early
|
-- PERF: add nvim-treesitter queries to the rtp and it's custom query predicates early
|
||||||
-- This is needed because a bunch of plugins no longer `require("nvim-treesitter")`, which
|
-- This is needed because a bunch of plugins no longer `require("nvim-treesitter")`, which
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue