From d38e3d5ea7d080ad6ce285b8dffd70623a1566bb Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Fri, 17 Jan 2025 23:08:34 +0100 Subject: remove all references to treesitter --- lua/plugins/core/treesitter.lua | 55 ----------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 lua/plugins/core/treesitter.lua (limited to 'lua/plugins/core') diff --git a/lua/plugins/core/treesitter.lua b/lua/plugins/core/treesitter.lua deleted file mode 100644 index f7b46b9..0000000 --- a/lua/plugins/core/treesitter.lua +++ /dev/null @@ -1,55 +0,0 @@ ----@param tbl table ----@return table -local tbl_uniq = function(tbl) - ---@type table - local added = {} - local res = {} - res = vim.tbl_filter(function(k) - if added[k] then - return false - end - added[k] = true - return true - end, tbl) - - return res -end - -return { - { - "nvim-treesitter/nvim-treesitter", - -- Disable for now, this has been a big source of pain and errors in the - -- past - enabled = false, - build = ":TSUpdate", - cmd = { "TSUpdateSync" }, - event = { "BufReadPost", "BufNewFile" }, - init = function() - vim.o.foldmethod = "expr" - vim.o.foldexpr = "nvim_treesitter#foldexpr()" - end, - opts = { - indent = { enable = true }, - ensure_installed = { "query" }, - ignore_install = {}, - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, - query_linter = { - enable = true, - use_virtual_text = true, - lint_events = { "BufWrite", "CursorHold" }, - }, - }, - config = function(_, opts) - if type(opts.ensure_installed) == "table" then - opts.ensure_installed = tbl_uniq(opts.ensure_installed) - end - if type(opts.ignore_install) == "table" then - opts.ignore_install = tbl_uniq(opts.ignore_install) - end - require("nvim-treesitter.configs").setup(opts) - end, - }, -} -- cgit v1.2.3