Skip to content

Commit

Permalink
feat(nvim): remove useless filtering
Browse files Browse the repository at this point in the history
This was useful when I was injecting grammars from other plugins, now it
is quite useless..
  • Loading branch information
massix committed Apr 5, 2024
1 parent f381424 commit 226c3f3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ return {
},
},
config = function(_, opts)
if type(opts.ensure_installed) == "table" then
---@type table<string, boolean>
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)

Expand Down

0 comments on commit 226c3f3

Please sign in to comment.