From 226c3f3599164ba7ca7d5296c98744c1b160f4ad Mon Sep 17 00:00:00 2001 From: Massimo Gengarelli Date: Fri, 5 Apr 2024 20:16:01 +0200 Subject: [PATCH] feat(nvim): remove useless filtering This was useful when I was injecting grammars from other plugins, now it is quite useless.. --- nvim/lua/plugins/treesitter.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index f04e4b6..c2e2f03 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -74,17 +74,6 @@ return { }, }, config = function(_, opts) - if type(opts.ensure_installed) == "table" then - ---@type table - local added = {} - opts.ensure_installed = vim.tbl_filter(function(lang) - if added[lang] then - return false - end - added[lang] = true - return true - end, opts.ensure_installed) - end require("tree-sitter-just").setup({}) require("nvim-treesitter.configs").setup(opts)