feat(go): add go lang extras

This commit is contained in:
Jonas Holst Damtoft 2023-05-22 21:06:13 +02:00
parent eba510ec69
commit 744d14693a

View file

@ -0,0 +1,44 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"go",
"gomod",
"gowork",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
gopls = {},
},
},
},
{
"mfussenegger/nvim-dap",
optional = true,
dependencies = {
{
"mason.nvim",
opts = {
ensure_installed = { "delve" },
},
},
},
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"nvim-neotest/neotest-go",
},
opts = function(_, opts)
opts.adapters = vim.list_extend(opts.adapters or {}, {
require("neotest-go"),
})
end,
},
}