perf: added support for LazyFile event that properly loads file based plugins without blocking the ui

This commit is contained in:
Folke Lemaitre 2023-10-04 10:45:10 +02:00
parent f15dd301e5
commit 936d74bb61
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
8 changed files with 58 additions and 14 deletions

View file

@ -6,7 +6,7 @@ return {
"nvim-treesitter/nvim-treesitter",
version = false, -- last release is way too old and doesn't work on Windows
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
event = { "LazyFile", "VeryLazy" },
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",