From a888439cc920d11162713948d7c5792117c459f0 Mon Sep 17 00:00:00 2001 From: codepuncher Date: Tue, 3 Feb 2026 13:41:51 +0000 Subject: [PATCH] fix(nvim): treesitter setup --- nvim/lua/plugins/configs/treesitter.lua | 2 +- nvim/lua/plugins/init.lua | 14 +++++++------- shell/functions | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/nvim/lua/plugins/configs/treesitter.lua b/nvim/lua/plugins/configs/treesitter.lua index bb99bdf..f9bb239 100644 --- a/nvim/lua/plugins/configs/treesitter.lua +++ b/nvim/lua/plugins/configs/treesitter.lua @@ -31,7 +31,7 @@ plugin.setup({ tree_setter = { enable = true, }, - ensure_installed = { + install = { 'bash', 'blade', 'css', diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index 98a1007..958b201 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -23,7 +23,7 @@ require('lazy').setup({ 'nvim-lua/plenary.nvim', { 'nvim-telescope/telescope-fzf-native.nvim', - build = 'make', + build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release --target install', }, 'nvim-telescope/telescope-github.nvim', 'nvim-telescope/telescope-node-modules.nvim', @@ -121,10 +121,14 @@ require('lazy').setup({ -- Treesitter { 'nvim-treesitter/nvim-treesitter', + lazy = false, + build = ':TSUpdate', + config = function() + require('plugins.configs.treesitter') + end, dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects', - 'nvim-treesitter/nvim-treesitter-refactor', - 'p00f/nvim-ts-rainbow', + 'nvim-treesitter/nvim-treesitter-locals', 'JoosepAlviste/nvim-ts-context-commentstring', { 'windwp/nvim-ts-autotag', @@ -134,10 +138,6 @@ require('lazy').setup({ }, 'andymass/vim-matchup', }, - build = ':TSUpdate', - config = function() - require('plugins.configs.treesitter') - end, }, -- Language Server Protocol diff --git a/shell/functions b/shell/functions index 534b322..220503d 100644 --- a/shell/functions +++ b/shell/functions @@ -136,6 +136,7 @@ install_wsl_packages() { shellcheck # System + cmake vim tldr git @@ -145,6 +146,7 @@ install_wsl_packages() { ripgrep eza fd-find + fzf xsel xclip imagemagick