auto tree sit
This commit is contained in:
parent
9c884fb841
commit
3c84ec54bf
1 changed files with 18 additions and 11 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
local auto = true
|
||||||
|
local output = vim.fn.system({
|
||||||
|
"which",
|
||||||
|
"tree-sitter",
|
||||||
|
})
|
||||||
|
if output == nil or output == "" then
|
||||||
|
auto = false
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
dependencies = { "windwp/nvim-ts-autotag", "JoosepAlviste/nvim-ts-context-commentstring" },
|
dependencies = { "windwp/nvim-ts-autotag", "JoosepAlviste/nvim-ts-context-commentstring" },
|
||||||
|
@ -57,7 +66,7 @@ return {
|
||||||
"vue",
|
"vue",
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
auto_install = false,
|
auto_install = auto,
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
use_languagetree = true,
|
use_languagetree = true,
|
||||||
|
@ -76,5 +85,3 @@ return {
|
||||||
},
|
},
|
||||||
"nvim-treesitter/playground",
|
"nvim-treesitter/playground",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue