From a7e970d574bfb364e164a4895eee5f106f2a61a8 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad <me@hadeedahmad.com> Date: Wed, 26 Mar 2025 20:15:55 +0500 Subject: [PATCH] Add treesitter --- nvim/lua/config/lazy.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index e51a77d..95f0a01 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -15,10 +15,28 @@ end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ + install = { + colorscheme = { "gruvbox" } + }, + spec = { { "ellisonleao/gruvbox.nvim", config = function() vim.cmd.colorscheme "gruvbox" end }, + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = "all", + highlight = { + enable = true + }, + indent = { + enable = true + } + }, + main = "nvim-treesitter.configs", + build = ":TSUpdate", + }, + { import = "config.plugins" } }, - install = { colorscheme = { "gruvbox" } } })