refactor(plugins): simplify list_insert_unique calls
parent
01ac6de9a9
commit
bb38952947
|
@ -6,8 +6,7 @@ return {
|
||||||
-- overrides `require("mason-lspconfig").setup(...)`
|
-- overrides `require("mason-lspconfig").setup(...)`
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
-- add more things to the ensure_installed table protecting against community packs modifying it
|
-- add more things to the ensure_installed table protecting against community packs modifying it
|
||||||
if not opts.ensure_installed then opts.ensure_installed = {} end
|
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
||||||
require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
|
||||||
-- "lua_ls",
|
-- "lua_ls",
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
@ -18,8 +17,7 @@ return {
|
||||||
-- overrides `require("mason-null-ls").setup(...)`
|
-- overrides `require("mason-null-ls").setup(...)`
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
-- add more things to the ensure_installed table protecting against community packs modifying it
|
-- add more things to the ensure_installed table protecting against community packs modifying it
|
||||||
if not opts.ensure_installed then opts.ensure_installed = {} end
|
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
||||||
require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
|
||||||
-- "prettier",
|
-- "prettier",
|
||||||
-- "stylua",
|
-- "stylua",
|
||||||
})
|
})
|
||||||
|
@ -30,8 +28,7 @@ return {
|
||||||
-- overrides `require("mason-nvim-dap").setup(...)`
|
-- overrides `require("mason-nvim-dap").setup(...)`
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
-- add more things to the ensure_installed table protecting against community packs modifying it
|
-- add more things to the ensure_installed table protecting against community packs modifying it
|
||||||
if not opts.ensure_installed then opts.ensure_installed = {} end
|
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
||||||
require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
|
||||||
-- "python",
|
-- "python",
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -2,8 +2,7 @@ return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
-- add more things to the ensure_installed table protecting against community packs modifying it
|
-- add more things to the ensure_installed table protecting against community packs modifying it
|
||||||
if not opts.ensure_installed then opts.ensure_installed = {} end
|
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
||||||
require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
|
||||||
-- "lua"
|
-- "lua"
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue