X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8e1fb59140f7d75ea63197c5f9615fc3dca60584..38ac86c63057044211d9ed765b84ad2a35814335:/nvim/lua/plugins/treesitter.lua diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 96e8c1a..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 @@ -28,6 +28,11 @@ return { "bash", "c", "diff", + "git_config", + "git_rebase", + "gitattributes", + "gitcommit", + "gitignore", "html", "javascript", "jsdoc", @@ -101,7 +106,7 @@ return { -- Automatically add closing tags for HTML and JSX { "windwp/nvim-ts-autotag", - event = "LazyFile", + event = { "BufReadPost", "BufNewFile", "BufWritePre" }, opts = {}, }, }