From 73f06db5d7ace69918b28d55d261e87eccee59a8 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 19 Jan 2026 20:24:31 +0100 Subject: [PATCH] nvim: enable treesitter only when cli installed --- nvim/lua/config/lazy.lua | 5 ++++- nvim/lua/plugins/treesitter.lua | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index 18d8e56..e7b591e 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -22,7 +22,10 @@ require("lazy").setup({ -- colorscheme that will be used when installing plugins. install = { colorscheme = { "onedark" } }, -- automatically check for plugin updates - checker = { enabled = true }, + checker = { + enabled = true, + notify = false, + }, -- disable luarocks rocks = { enabled = false }, }) diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 82d71e1..e06c67b 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -2,6 +2,9 @@ return { 'nvim-treesitter/nvim-treesitter', lazy = false, build = ':TSUpdate', + cond = function() + return vim.fn.executable 'tree-sitter' == 1 + end, config = function() require("config.treesitter") end,