adds go config and removes unnecessary packages
This commit is contained in:
parent
27aaefc519
commit
e492804a69
6 changed files with 23 additions and 22 deletions
15
modules/nvim/config/lua/plugins/gopher.lua
Normal file
15
modules/nvim/config/lua/plugins/gopher.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"olexsmir/gopher.nvim",
|
||||
ft = "go",
|
||||
build = function()
|
||||
vim.cmd.GoInstallDeps()
|
||||
end,
|
||||
---@module "gopher"
|
||||
---@type gopher.Config
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<leader>cga", "<cmd>GoTagAdd<cr>", desc = "Add tags to struct", mode = "n" },
|
||||
{ "<leader>cgi", "<cmd>GoIfErr<cr>", desc = "Adds if err boilerplate", mode = "n" },
|
||||
{ "<leader>cgt", "<cmd>GoTestAdd<cr>", desc = "Add test under cursor", mode = "n" },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue