nvim: plugins: Add TSUpdate as post install hook for treesitter

This commit is contained in:
Sanchayan Maity 2021-10-01 18:56:46 +05:30
parent ef61388c72
commit 2ff1ba46e1

View file

@ -88,11 +88,22 @@ local init = function ()
}
-- treesitter based syntax highlighting
use {
'nvim-treesitter/nvim-treesitter-textobjects',
requires = { 'nvim-treesitter/nvim-treesitter' },
'nvim-treesitter/nvim-treesitter',
requires = {
{
"nvim-treesitter/playground",
after = "nvim-treesitter",
cmd = { "TSPlaygroundToggle", "TSHighlightCapturesUnderCursor" },
},
{
"nvim-treesitter/nvim-treesitter-textobjects",
module = "nvim-treesitter-textobjects",
after = "nvim-treesitter",
},
},
config = "require('treesitter')",
run = ':TSUpdate'
}
use 'nvim-treesitter/playground'
-- All writing needs
use 'lervag/vimtex'
use 'vim-pandoc/vim-pandoc'