From fb523003e2881ece21d3e2c39598a95de04d9f58 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 20 Jun 2024 10:30:07 -0400 Subject: [PATCH] feat(go)!: move from `go.nvim` to `gopher.nvim` --- lua/astrocommunity/pack/go/init.lua | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/lua/astrocommunity/pack/go/init.lua b/lua/astrocommunity/pack/go/init.lua index 5dfa33455..d09be6485 100644 --- a/lua/astrocommunity/pack/go/init.lua +++ b/lua/astrocommunity/pack/go/init.lua @@ -70,10 +70,8 @@ return { "jay-babu/mason-null-ls.nvim", optional = true, opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique( - opts.ensure_installed, - { "gomodifytags", "gofumpt", "iferr", "impl", "goimports" } - ) + opts.ensure_installed = + require("astrocore").list_insert_unique(opts.ensure_installed, { "gomodifytags", "iferr", "impl", "gotests" }) end, }, { @@ -89,7 +87,7 @@ return { opts = function(_, opts) opts.ensure_installed = require("astrocore").list_insert_unique( opts.ensure_installed, - { "delve", "gopls", "gomodifytags", "gofumpt", "iferr", "impl", "goimports" } + { "delve", "gopls", "gomodifytags", "gotests", "iferr", "impl" } ) end, }, @@ -109,22 +107,14 @@ return { opts = {}, }, { - "ray-x/go.nvim", + "olexsmir/gopher.nvim", + ft = "go", dependencies = { - "ray-x/guihua.lua", - "neovim/nvim-lspconfig", + "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", + { "williamboman/mason.nvim", optional = true }, -- by default use Mason for go dependencies }, - opts = { - disable_defaults = true, - diagnostic = false, - go = "go", - }, - event = { "CmdlineEnter" }, - ft = { "go", "gomod" }, - -- Prevents Neovim from freezing on plugin installation/update. - -- See: - build = function() require("go.install").update_all() end, + opts = {}, }, { "nvim-neotest/neotest",