[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang

refactor(config): allow both and 'string', and 'nil' for optional params

olexsmir.xyz 0b2c26eb d1eaebab

verified
Changed files
+2 -2
lua
gopher
+2 -2
lua/gopher/config.lua
··· 100 100 vim.validate("commands.iferr", _config.commands.iferr, "string") 101 101 vim.validate("gotests", _config.gotests, "table") 102 102 vim.validate("gotests.template", _config.gotests.template, "string") 103 - vim.validate("gotests.template_dir", _config.gotests.template_dir, "string", true) 103 + vim.validate("gotests.template_dir", _config.gotests.template_dir, { "string", "nil" }) 104 104 vim.validate("gotests.named", _config.gotests.named, "boolean") 105 105 vim.validate("gotag", _config.gotag, "table") 106 106 vim.validate("gotag.transform", _config.gotag.transform, "string") 107 107 vim.validate("gotag.default_tag", _config.gotag.default_tag, "string") 108 108 vim.validate("iferr", _config.iferr, "table") 109 - vim.validate("iferr.message", _config.iferr.message, "string", true) 109 + vim.validate("iferr.message", _config.iferr.message, { "string", "nil" }) 110 110 end 111 111 112 112 setmetatable(config, {