all repos

gopher.nvim @ 6ee261cfa60672104e93de3584bc84b0a7bb90fa

Minimalistic plugin for Go development
3 files changed, 14 insertions(+), 7 deletions(-)
docs: update readme
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-03-22 21:19:59 +0200
Parent: 7af08c9
M README.md

@@ -39,17 +39,21 @@ > [!IMPORTANT]

> > If you need more info look `:h gopher.nvim` -**Take a look at default options** +**Take a look at default options (might be a bit outdated, look `:h gopher.nvim-config-defaults`)** ```lua require("gopher").setup { + log_level = vim.log.levels.INFO, + + -- timeout for running internal commands + timeout = 2000, + commands = { go = "go", gomodifytags = "gomodifytags", gotests = "gotests", impl = "impl", iferr = "iferr", - dlv = "dlv", }, gotests = { -- gotests doesn't have template named "default" so this plugin uses "default" to set the default template

@@ -61,6 +65,12 @@ named = false,

}, gotag = { transform = "snakecase", + -- default tags to add to struct fields + default_tag = "json", + }, + iferr = { + -- choose a custom error message + message = nil, }, } ```

@@ -84,7 +94,6 @@ - [gomodifytags](https://github.com/fatih/gomodifytags)

- [impl](https://github.com/josharian/impl) - [gotests](https://github.com/cweill/gotests) - [iferr](https://github.com/koron/iferr) - - [dlv](github.com/go-delve/delve/cmd/dlv) </details> <details>
M doc/gopher.nvim.txt

@@ -57,7 +57,7 @@ -- log level, you might consider using DEBUG or TRACE for debugging the plugin

---@type number log_level = vim.log.levels.INFO, - -- timeout for running commands + -- timeout for running internal commands ---@type number timeout = 2000,

@@ -73,7 +73,6 @@ gomodifytags = "gomodifytags",

gotests = "gotests", impl = "impl", iferr = "iferr", - dlv = "dlv", }, ---@class gopher.ConfigGotests gotests = {
M lua/gopher/config.lua

@@ -33,7 +33,7 @@ -- log level, you might consider using DEBUG or TRACE for debugging the plugin

---@type number log_level = vim.log.levels.INFO, - -- timeout for running commands + -- timeout for running internal commands ---@type number timeout = 2000,

@@ -49,7 +49,6 @@ gomodifytags = "gomodifytags",

gotests = "gotests", impl = "impl", iferr = "iferr", - dlv = "dlv", }, ---@class gopher.ConfigGotests gotests = {