@@ -25,8 +25,8 @@ local function add_dependence(url, name, ...)
2525end
2626
2727add_dependence (" https://github.com/nvim-lua/plenary.nvim" , " plenary.nvim" )
28- add_dependence (" https://github.com/nvim-treesitter/nvim-treesitter" , " nvim-treesitter" , " --branch" , " main " )
29- add_dependence (" https://github.com/nvim-treesitter/nvim-treesitter-textobjects" , " nvim-treesitter-textobjects" , " --branch" , " main " )
28+ add_dependence (" https://github.com/nvim-treesitter/nvim-treesitter" , " nvim-treesitter" , " --branch" , " master " )
29+ add_dependence (" https://github.com/nvim-treesitter/nvim-treesitter-textobjects" , " nvim-treesitter-textobjects" , " --branch" , " master " )
3030add_dependence (" https://github.com/AbaoFromCUG/websocket.nvim" , " websocket.nvim" )
3131add_dependence (" https://github.com/nvim-neotest/nvim-nio" , " nvim-nio" )
3232add_dependence (" https://github.com/pysan3/pathlib.nvim" , " pathlib.nvim" )
@@ -38,6 +38,10 @@ vim.opt.rtp:append(vim.fs.joinpath(__project_root__, "after"))
3838vim .cmd (" runtime plugin/plenary.vim" )
3939require (" plenary.busted" )
4040
41- require (" nvim-treesitter" ).setup ({})
42- require (" nvim-treesitter" ).install ({ " lua" , " python" , " markdown" }):wait ()
41+
42+ require (' nvim-treesitter.configs' ).setup {
43+ ensure_installed = { " python" , " r" , " markdown" , " markdown_inline" },
44+ sync_install = true ,
45+ auto_install = true ,
46+ }
4347vim .opt .rtp :append (vim .fs .joinpath (vim .fn .stdpath (" data" ), " site" ))
0 commit comments