mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +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
|
@ -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, { "cmake" })
|
||||
end
|
||||
end,
|
||||
opts = { ensure_installed = { "cmake" } },
|
||||
},
|
||||
{
|
||||
"nvimtools/none-ls.nvim",
|
||||
|
@ -34,10 +30,7 @@ return {
|
|||
},
|
||||
{
|
||||
"mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "cmakelang", "cmakelint" })
|
||||
end,
|
||||
opts = { ensure_installed = { "cmakelang", "cmakelint" } },
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue