mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 08:35:53 +02:00
refactor: use lazy's new opts_extend
functionality for treesitter and mason
This commit is contained in:
parent
f70d350085
commit
ab41ff551b
33 changed files with 54 additions and 219 deletions
|
@ -6,9 +6,7 @@ return {
|
|||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, { "php" })
|
||||
end,
|
||||
opts = { ensure_installed = { "php" } },
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -25,11 +23,7 @@ return {
|
|||
optional = true,
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
table.insert(opts.ensure_installed, "php-debug-adapter")
|
||||
end
|
||||
end,
|
||||
opts = { ensure_installed = { "php-debug-adapter" } },
|
||||
},
|
||||
opts = function()
|
||||
local dap = require("dap")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue