Add cmd condition to load treesitter
This commit is contained in:
parent
2a97cc76d6
commit
fc8fea536f
|
@ -2,6 +2,7 @@ return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
version = false,
|
version = false,
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
|
cmd = {"TSUpdate", "TSInstall"},
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = "nvim-treesitter/nvim-treesitter-refactor",
|
dependencies = "nvim-treesitter/nvim-treesitter-refactor",
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
|
Loading…
Reference in a new issue