From 1777be0064c5f24bcd1a589c5fbfe3bbd330f160 Mon Sep 17 00:00:00 2001 From: zbirenbaum Date: Mon, 28 Feb 2022 04:40:14 -0500 Subject: [PATCH] fix for treesitter not loading on creating new file --- lua/plugins/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 960d7cf..622af9b 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -65,7 +65,7 @@ local plugins = { { "nvim-treesitter/nvim-treesitter", - event = "BufRead", + event = {"BufRead", "BufNewFile"}, config = override_req("nvim_treesitter", "plugins.configs.treesitter", "setup"), run = ":TSUpdate", },