update vim config
This commit is contained in:
parent
3a76bbf0c6
commit
c37bf09c81
9 changed files with 267 additions and 40 deletions
12
after/plugin/gopher-config.lua
Normal file
12
after/plugin/gopher-config.lua
Normal 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' })
|
||||
Loading…
Add table
Add a link
Reference in a new issue