Prevent treesitter installation on CI

main
Ensar Sarajčić 2022-05-05 18:14:29 +02:00
parent 1b070d092c
commit c131fe0391
1 changed files with 8 additions and 1 deletions

View File

@ -68,7 +68,14 @@ return require("packer").startup({
use("cdelledonne/vim-cmake") -- CMake integration
-- Treesitter
use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" }) -- Treesitter integration
use({
"nvim-treesitter/nvim-treesitter",
run = function()
if not os.getenv("DOTFILES_CI") then
vim.cmd("TSUpdate")
end
end,
}) -- Treesitter integration
use("nvim-treesitter/playground") -- TSPlaygroundToggle - access treesitter data
-- LSP