require('gopher').setup { commands = { go = 'go', gomodifytags = 'gomodifytags', gotests = '~/go/bin/gotests', -- also you can set custom command path impl = 'impl', iferr = 'iferr', }, } vim.keymap.set('n', 'gsv', ':GoTagAdd validate:required', { desc = 'Add validation to struct' }) vim.keymap.set('n', 'gaj', ':GoTagAdd json', { desc = 'Add JSON Tag TO Go Struct' }) vim.keymap.set('n', 'gax', ':GoTagAdd xml', { desc = 'Add XML Tag TO Go Struct' }) vim.keymap.set('n', 'gadb', ':GoTagAdd db', { desc = 'Add DB Tag TO Go Struct' }) vim.keymap.set('n', 'gmt', ':GoMod tidy', { desc = 'go mod tidy' })