From b11f10605e0283611d16fb3fafb5b3ca01408663 Mon Sep 17 00:00:00 2001 From: Alex Malykh <49870662+ysomad@users.noreply.github.com> Date: Sun, 26 Nov 2023 00:50:16 +0400 Subject: [PATCH] update README.md --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ccbdba5..02b0152 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,27 @@ use { } ``` +Lazy.nvim: + +```lua +return { + "olexsmir/gopher.nvim", + build = function () + vim.cmd(":GoInstallDeps") + -- make named tests works + vim.fn.jobstart("go install github.com/cweill/gotests/...@develop") + end, + config = function () + require("gopher").setup({ + gotests = { + template = "testify", + named = true + } + }) + end +} +``` + Also, run `TSInstall go` if `go` parser if isn't installed yet. ## Config @@ -40,8 +61,6 @@ require("gopher").setup { iferr = "iferr", }, gotests = { - -- gotests tag to install from - tag = "@latest", -- gotests doesn't have template named "default" so this plugin uses "default" to set the default template template = "default", -- path to a directory containing custom test code templates