From c131fe03917a85b9e694165c0b4b32767e626721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 5 May 2022 18:14:29 +0200 Subject: [PATCH] Prevent treesitter installation on CI --- symlinks/config/nvim/lua/esensar/init/plugins.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/symlinks/config/nvim/lua/esensar/init/plugins.lua b/symlinks/config/nvim/lua/esensar/init/plugins.lua index 4dd6207..83286f7 100644 --- a/symlinks/config/nvim/lua/esensar/init/plugins.lua +++ b/symlinks/config/nvim/lua/esensar/init/plugins.lua @@ -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