fix(dot): treesitter langs in dot extra were not added
This commit is contained in:
@ -37,7 +37,7 @@ return {
|
|||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local function add(lang)
|
local function add(lang)
|
||||||
if type(opts.ensure_installed) ~= "table" then
|
if type(opts.ensure_installed) == "table" then
|
||||||
table.insert(opts.ensure_installed, lang)
|
table.insert(opts.ensure_installed, lang)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user