fix(plugins): lazy-loading on BufReadPre or BufReadPost, should also use BufNewFile. Fixes #169

This commit is contained in:
Folke Lemaitre 2023-02-07 21:59:33 +01:00
parent 088914e1dd
commit 5f5a564a82
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@ return {
"nvim-treesitter/nvim-treesitter",
version = false, -- last release is way too old and doesn't work on Windows
build = ":TSUpdate",
event = "BufReadPost",
event = { "BufReadPost", "BufNewFile" },
keys = {
{ "<c-space>", desc = "Increment selection" },
{ "<bs>", desc = "Schrink selection", mode = "x" },