Skip to content

Commit

Permalink
fix(nvim-treesitter): initialize 'nvim-treesitter' on VimEnter (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed May 6, 2024
1 parent 25092e9 commit c20a639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion lua/configs/nvim-treesitter/nvim-treesitter/config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local constants = require("builtin.utils.constants")
local message = require("builtin.utils.message")
local uv = vim.uv or vim.loop

local ensure_installed = {
Expand Down
15 changes: 3 additions & 12 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,16 @@ local M = {
require("colorbox").update()
end,
},

-- ---- HIGHLIGHT ----

{
"nvim-treesitter/nvim-treesitter",
event = { VeryLazy },
cmd = {
"TSInstall",
"TSInstallSync",
"TSInstallInfo",
"TSUpdate",
"TSUpdateSync",
"TSUninstall",
},
build = function()
require("nvim-treesitter.install").update({ with_sync = true })
end,
config = lua_config("nvim-treesitter/nvim-treesitter"),
},

-- ---- HIGHLIGHT ----

{
"RRethy/vim-illuminate",
event = { VeryLazy },
Expand Down

0 comments on commit c20a639

Please sign in to comment.