From 5e35156e24fedec89cd5c43d93e9904b99488700 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lukas=20H=C3=A4gele?= Date: Sun, 4 Oct 2026 15:26:00 +0200 Subject: [PATCH] update telescope and treesitter plugins to follow current development --- lua/config/plugins/telescope.lua | 2 +- lua/config/plugins/treesitter.lua | 25 ++----------------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/lua/config/plugins/telescope.lua b/lua/config/plugins/telescope.lua index 5f48177..786c3c5 100644 --- a/lua/config/plugins/telescope.lua +++ b/lua/config/plugins/telescope.lua @@ -6,7 +6,7 @@ end return { 'nvim-telescope/telescope.nvim', - tag = '0.1.8', + version = '*', dependencies = { 'nvim-lua/plenary.nvim', { 'nvim-telescope/telescope-fzf-native.nvim', build = build } diff --git a/lua/config/plugins/treesitter.lua b/lua/config/plugins/treesitter.lua index 8f18b8d..a508e68 100644 --- a/lua/config/plugins/treesitter.lua +++ b/lua/config/plugins/treesitter.lua @@ -1,29 +1,8 @@ return { { - "nvim-treesitter/nvim-treesitter", - branch = 'master', - lazy = false, + "nvim-treesitter/nvim-treesitter", + lazy = false, build = ":TSUpdate", - config = function() - require'nvim-treesitter.configs'.setup { - -- A list of parser names, or "all" (the listed parsers MUST always be installed) - ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline" }, - auto_install = false, - ignore_install = { "javascript" }, - highlight = { - enable = true, - -- disable slow treesitter highlight for large files - disable = function(lang, buf) - local max_filesize = 100 * 1024 -- 100 KB - local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) - if ok and stats and stats.size > max_filesize then - return true - end - end, - additional_vim_regex_highlighting = false, - }, - } - end } } -- 2.39.5