X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/fd3198e899ebd966f3aee060553f8d1d153b50da..38ac86c63057044211d9ed765b84ad2a35814335:/nvim/lua/plugins/treesitter.lua diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index f58f6ae..5ffa798 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -2,7 +2,7 @@ return { { "nvim-treesitter/nvim-treesitter", dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" }, build = ":TSUpdate", - event = { "LazyFile", "VeryLazy" }, + event = { "BufReadPost", "BufNewFile", "BufWritePre" , "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 @@ -106,7 +106,7 @@ return { -- Automatically add closing tags for HTML and JSX { "windwp/nvim-ts-autotag", - event = "LazyFile", + event = { "BufReadPost", "BufNewFile", "BufWritePre" }, opts = {}, }, }