fix(dot): treesitter langs in dot extra were not added

This commit is contained in:
Folke Lemaitre
2023-10-17 16:33:55 +02:00
parent c711309a67
commit b0ded5c015

View File

@ -37,7 +37,7 @@ return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
local function add(lang)
if type(opts.ensure_installed) ~= "table" then
if type(opts.ensure_installed) == "table" then
table.insert(opts.ensure_installed, lang)
end
end