refactor: use lazy's new opts_extend functionality for treesitter and mason

This commit is contained in:
Folke Lemaitre
2024-06-07 09:03:59 +02:00
parent f70d350085
commit ab41ff551b
33 changed files with 54 additions and 219 deletions

View File

@ -67,11 +67,7 @@ return {
{
"nvim-treesitter/nvim-treesitter",
optional = true,
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "sql" })
end
end,
opts = { ensure_installed = { "sql" } },
},
-- Edgy integration
@ -99,10 +95,7 @@ return {
-- Linters & formatters
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "sqlfluff" })
end,
opts = { ensure_installed = { "sqlfluff" } },
},
{
"mfussenegger/nvim-lint",