Fix the Gfswitch command to call the right function

This commit is contained in:
Viktor Kojouharov 2021-05-16 20:21:12 +03:00 committed by GitHub
parent 65bb960622
commit 95fe379935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ function go.setup(cfg)
vim.cmd([[command GoRename lua require("go.rename").run()]])
vim.cmd([[command Giferr lua require("go.iferr").run()]])
vim.cmd([[command Gfstruct lua require("go.reftool").fillstruct()]])
vim.cmd([[command Gfswitch lua require("go.reftool").fillstruct()]])
vim.cmd([[command Gfswitch lua require("go.reftool").fillswitch()]])
-- vim.cmd([[command GoLint :compiler golangci-lint run | :Gmake]])
vim.cmd([[command GoLint :setl makeprg=golangci-lint\ run\ --out-format\ tab | :Gmake]])