Skip to content

Commit

Permalink
perf(treesitter): load treesitter early during startup when opening a…
Browse files Browse the repository at this point in the history
… file from the cmdline
  • Loading branch information
folke committed May 14, 2024
1 parent 8301096 commit b29d169
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazyvim/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return {
version = false, -- last release is way too old and doesn't work on Windows
build = ":TSUpdate",
event = { "LazyFile", "VeryLazy" },
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
init = function(plugin)
-- 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
Expand Down

0 comments on commit b29d169

Please sign in to comment.