gopher.lua 280 B

12345678910111213
  1. return {
  2. "olexsmir/gopher.nvim",
  3. ft = "go",
  4. config = function(_, opts)
  5. require("gopher").setup(opts)
  6. vim.keymap.set("n", "<leader>gmt", ":GoMod tidy<cr>", {
  7. desc = "[Go] Tidy",
  8. })
  9. end,
  10. build = function()
  11. vim.cmd([[silent! GoInstallDeps]])
  12. end,
  13. }