mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
chore: add go.nvim
This commit is contained in:
parent
cf42eace43
commit
936a65ae43
2 changed files with 21 additions and 21 deletions
|
@ -1,13 +1,13 @@
|
|||
return {
|
||||
"olexsmir/gopher.nvim",
|
||||
"ray-x/go.nvim",
|
||||
ft = "go",
|
||||
config = function(_, opts)
|
||||
require("gopher").setup(opts)
|
||||
vim.keymap.set("n", "<leader>gmt", ":GoMod tidy<cr>", {
|
||||
require("go").setup(opts)
|
||||
vim.keymap.set("n", "<leader>gmt", ":GoModTidy<cr>", {
|
||||
desc = "[Go] Tidy",
|
||||
})
|
||||
end,
|
||||
build = function()
|
||||
vim.cmd([[silent! GoInstallDeps]])
|
||||
vim.cmd([[silent! GoModTidy]])
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue