all repos

gopher.nvim @ 0b2c26e

Minimalistic plugin for Go development
1 files changed, 2 insertions(+), 2 deletions(-)
refactor(config): allow both and 'string', and 'nil' for optional params
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-09-13 12:53:03 +0300
Change ID: rptxzolmvpzonnsmvlmwmulwmmkvyqrq
Parent: d1eaeba
M lua/gopher/config.lua

@@ -100,13 +100,13 @@ vim.validate("commands.impl", _config.commands.impl, "string")

vim.validate("commands.iferr", _config.commands.iferr, "string") vim.validate("gotests", _config.gotests, "table") vim.validate("gotests.template", _config.gotests.template, "string") - vim.validate("gotests.template_dir", _config.gotests.template_dir, "string", true) + vim.validate("gotests.template_dir", _config.gotests.template_dir, { "string", "nil" }) vim.validate("gotests.named", _config.gotests.named, "boolean") vim.validate("gotag", _config.gotag, "table") vim.validate("gotag.transform", _config.gotag.transform, "string") vim.validate("gotag.default_tag", _config.gotag.default_tag, "string") vim.validate("iferr", _config.iferr, "table") - vim.validate("iferr.message", _config.iferr.message, "string", true) + vim.validate("iferr.message", _config.iferr.message, { "string", "nil" }) end setmetatable(config, {