mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-01-29 09:23:02 +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.
|
||||
install = { colorscheme = { "onedark" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
checker = {
|
||||
enabled = true,
|
||||
notify = false,
|
||||
},
|
||||
-- disable luarocks
|
||||
rocks = { enabled = false },
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue