plugin/tree-sitter: make installation asyncronous
This commit is contained in:
parent
8bf457ecd4
commit
e0f4b9bb0c
@ -2,11 +2,16 @@ local spec = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
}
|
||||
|
||||
|
||||
spec.dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
"RRethy/nvim-treesitter-endwise",
|
||||
}
|
||||
|
||||
|
||||
spec.build = ":TSUpdate"
|
||||
|
||||
|
||||
spec.config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
@ -19,6 +24,8 @@ spec.config = function()
|
||||
"markdown_inline"
|
||||
},
|
||||
|
||||
sync_install = false,
|
||||
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
@ -31,7 +38,7 @@ spec.config = function()
|
||||
|
||||
require("treesitter-context").setup()
|
||||
|
||||
require("nvim-treesitter.install").update({ with_sync = true })()
|
||||
-- require("nvim-treesitter.install").update({})()
|
||||
end
|
||||
|
||||
return spec
|
||||
|
Loading…
Reference in New Issue
Block a user