Skip to content

Commit 73f06db

Browse files
committed
nvim: enable treesitter only when cli installed
1 parent 48ef0a5 commit 73f06db

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

nvim/lua/config/lazy.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ require("lazy").setup({
2222
-- colorscheme that will be used when installing plugins.
2323
install = { colorscheme = { "onedark" } },
2424
-- automatically check for plugin updates
25-
checker = { enabled = true },
25+
checker = {
26+
enabled = true,
27+
notify = false,
28+
},
2629
-- disable luarocks
2730
rocks = { enabled = false },
2831
})

nvim/lua/plugins/treesitter.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ return {
22
'nvim-treesitter/nvim-treesitter',
33
lazy = false,
44
build = ':TSUpdate',
5+
cond = function()
6+
return vim.fn.executable 'tree-sitter' == 1
7+
end,
58
config = function()
69
require("config.treesitter")
710
end,

0 commit comments

Comments
 (0)