mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 18:59:00 +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,14 +7,7 @@ return {
|
|||
end,
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"go",
|
||||
"gomod",
|
||||
"gowork",
|
||||
"gosum",
|
||||
})
|
||||
end,
|
||||
opts = { ensure_installed = { "go", "gomod", "gowork", "gosum" } },
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
|
@ -90,10 +83,7 @@ return {
|
|||
-- Ensure Go tools are installed
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "goimports", "gofumpt" })
|
||||
end,
|
||||
opts = { ensure_installed = { "goimports", "gofumpt" } },
|
||||
},
|
||||
{
|
||||
"nvimtools/none-ls.nvim",
|
||||
|
@ -101,10 +91,7 @@ return {
|
|||
dependencies = {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "gomodifytags", "impl" })
|
||||
end,
|
||||
opts = { ensure_installed = { "gomodifytags", "impl" } },
|
||||
},
|
||||
},
|
||||
opts = function(_, opts)
|
||||
|
@ -132,10 +119,7 @@ return {
|
|||
dependencies = {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "delve" })
|
||||
end,
|
||||
opts = { ensure_installed = { "delve" } },
|
||||
},
|
||||
{
|
||||
"leoluz/nvim-dap-go",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue