52 lines
962 B
Lua
52 lines
962 B
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, opts)
|
|
vim.list_extend(opts.ensure_installed, {
|
|
"go",
|
|
"gomod",
|
|
"gowork",
|
|
"gosum",
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
gopls = {
|
|
semanticTokens = true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"mfussenegger/nvim-dap",
|
|
optional = true,
|
|
dependencies = {
|
|
{
|
|
"mason.nvim",
|
|
opts = function(_, opts)
|
|
opts.ensure_installed = opts.ensure_installed or {}
|
|
table.insert(opts.ensure_installed, "delve")
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"nvim-neotest/neotest",
|
|
optional = true,
|
|
dependencies = {
|
|
"nvim-neotest/neotest-go",
|
|
},
|
|
opts = {
|
|
adapters = {
|
|
["neotest-go"] = {
|
|
-- Here we can set options for neotest-go, e.g.
|
|
-- args = { "-tags=integration" }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|