mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
update treesitter
This commit is contained in:
parent
962f03f0e4
commit
bf96bc2942
4 changed files with 93 additions and 47 deletions
|
@ -69,12 +69,36 @@ return {
|
|||
|
||||
-- include treesitter
|
||||
-- require("plugins.treesitter"),
|
||||
-- {
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac",
|
||||
-- run = ":TSUpdate",
|
||||
-- event = "BufWinEnter",
|
||||
-- opts = function()
|
||||
-- require("user.treesitter")
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac",
|
||||
run = ":TSUpdate",
|
||||
event = "BufWinEnter",
|
||||
opts = function()
|
||||
cmd = {
|
||||
"TSBufDisable",
|
||||
"TSBufEnable",
|
||||
"TSBufToggle",
|
||||
"TSDisable",
|
||||
"TSEnable",
|
||||
"TSToggle",
|
||||
"TSInstall",
|
||||
"TSInstallInfo",
|
||||
"TSInstallSync",
|
||||
"TSModuleInfo",
|
||||
"TSUninstall",
|
||||
"TSUpdate",
|
||||
"TSUpdateSync",
|
||||
},
|
||||
build = function()
|
||||
require("nvim-treesitter.install").update({ with_sync = true })()
|
||||
end,
|
||||
config = function()
|
||||
require("user.treesitter")
|
||||
end,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue