mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-01-29 01:13:01 +01:00
nvim: enable treesitter only when cli installed
This commit is contained in:
parent
48ef0a52d1
commit
73f06db5d7
2 changed files with 7 additions and 1 deletions
|
|
@ -22,7 +22,10 @@ require("lazy").setup({
|
||||||
-- colorscheme that will be used when installing plugins.
|
-- colorscheme that will be used when installing plugins.
|
||||||
install = { colorscheme = { "onedark" } },
|
install = { colorscheme = { "onedark" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = true },
|
checker = {
|
||||||
|
enabled = true,
|
||||||
|
notify = false,
|
||||||
|
},
|
||||||
-- disable luarocks
|
-- disable luarocks
|
||||||
rocks = { enabled = false },
|
rocks = { enabled = false },
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,9 @@ return {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
|
cond = function()
|
||||||
|
return vim.fn.executable 'tree-sitter' == 1
|
||||||
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
require("config.treesitter")
|
require("config.treesitter")
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue