# HG changeset patch # User Meredith Howard # Date 1712892318 18000 # Node ID 52033d249bcb156d3d2f714d5991b9cf76e81eb0 # Parent 4af7c81566836eb1caa96b0b31ef41fc64ed6b10 Adjust treesitter load diff --git a/.config/nvim/lua/plugins/filetype.lua b/.config/nvim/lua/plugins/filetype.lua --- a/.config/nvim/lua/plugins/filetype.lua +++ b/.config/nvim/lua/plugins/filetype.lua @@ -12,11 +12,11 @@ return { dependencies = { "RRethy/nvim-treesitter-endwise", }, - event = { "BufReadPost", "BufNewFile" }, - build = function() - require("nvim-treesitter.install").update({ with_sync = true }) - end, + event = "VeryLazy", + build = ":TSUpdate", + cmd = { "TSUpdateSync", "TSUpdate", "TSInstall" }, config = function() + ---@diagnostic disable-next-line: missing-fields require("nvim-treesitter.configs").setup({ highlight = { enable = true }, indent = { enable = true }, @@ -36,6 +36,7 @@ return { }) end, }, + { "Shougo/vinarise.vim", cmd = "Vinarise" }, "asciidoc/vim-asciidoc", { "vim-perl/vim-perl", branch = "dev" },