update vim config

This commit is contained in:
Oluwatobi 2023-11-30 14:57:19 +01:00
parent 3a76bbf0c6
commit c37bf09c81
9 changed files with 267 additions and 40 deletions

View file

@ -0,0 +1,12 @@
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', 'gaj', ':GoTagAdd json<CR>', { desc = 'Add JSON Tag TO Go Struct' })
vim.keymap.set('n', 'gax', ':GoTagAdd xml<CR>', { desc = 'Add XML Tag TO Go Struct' })