add golang configuration
This commit is contained in:
parent
2d4fe69a06
commit
c3994e069c
4 changed files with 64 additions and 1 deletions
12
lua/custom/plugins/gopher.lua
Normal file
12
lua/custom/plugins/gopher.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'olexsmir/gopher.nvim',
|
||||
ft = 'go',
|
||||
config = function(_, opts)
|
||||
require('gopher').setup(opts)
|
||||
|
||||
vim.keymap.set("n", "<leader>gsj", "<CMD>GoTagAdd json<CR>", { desc = '[G]o add [S]truct [J]SON' })
|
||||
end,
|
||||
build = function()
|
||||
vim.cmd [[silent! GoInstallDeps]]
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue