Skip to content

Commit

Permalink
feat(go): add go lang extras (#795)
Browse files Browse the repository at this point in the history
* feat(go): add go lang extras

* fix(go): update plugin

* fix(go): add neotest adapter to adapters

* fix(go): pr changes
  • Loading branch information
Jomik authored May 24, 2023
1 parent 076b2e4 commit 163a4f9
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions lua/lazyvim/plugins/extras/lang/go.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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 = {
ensure_installed = { "delve" },
},
},
},
},
{
"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" }
},
},
},
},
}

0 comments on commit 163a4f9

Please sign in to comment.