nvim: plugins: Add TSUpdate as post install hook for treesitter
This commit is contained in:
parent
ef61388c72
commit
2ff1ba46e1
1 changed files with 14 additions and 3 deletions
|
@ -88,11 +88,22 @@ local init = function ()
|
||||||
}
|
}
|
||||||
-- treesitter based syntax highlighting
|
-- treesitter based syntax highlighting
|
||||||
use {
|
use {
|
||||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
requires = { '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')",
|
config = "require('treesitter')",
|
||||||
|
run = ':TSUpdate'
|
||||||
}
|
}
|
||||||
use 'nvim-treesitter/playground'
|
|
||||||
-- All writing needs
|
-- All writing needs
|
||||||
use 'lervag/vimtex'
|
use 'lervag/vimtex'
|
||||||
use 'vim-pandoc/vim-pandoc'
|
use 'vim-pandoc/vim-pandoc'
|
||||||
|
|
Loading…
Reference in a new issue