Longer timeout
This commit is contained in:
parent
3c4eafa461
commit
7adee61133
1 changed files with 4 additions and 4 deletions
|
|
@ -4,13 +4,13 @@ return {
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
config = function()
|
||||||
-- Auto launch tree-sitter
|
-- Auto launch tree-sitter
|
||||||
require('nvim-treesitter').get_available()
|
local ts = require('nvim-treesitter')
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
pattern = require('nvim-treesitter').get_available(),
|
pattern = ts.get_available(),
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
-- Auto install languages
|
-- Auto install languages
|
||||||
if event.match ~= require('nvim-treesitter').get_installed() then
|
if event.match ~= ts.get_installed() then
|
||||||
require('nvim-treesitter').install({ event.match }):wait(3000) -- 30 sec timeout
|
ts.install({ event.match }):wait(30000) -- 30 sec timeout
|
||||||
end
|
end
|
||||||
-- syntax highlighting, provided by Neovim
|
-- syntax highlighting, provided by Neovim
|
||||||
vim.treesitter.start()
|
vim.treesitter.start()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue