refactor: use lazy's new opts_extend
functionality for treesitter and mason
This commit is contained in:
@ -7,11 +7,7 @@ return {
|
||||
end,
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "scala" })
|
||||
end
|
||||
end,
|
||||
opts = { ensure_installed = { "scala" } },
|
||||
},
|
||||
{
|
||||
"scalameta/nvim-metals",
|
||||
|
Reference in New Issue
Block a user