From 3cdd68a17ffebcb85a0dd37332e081b0c0eca76d Mon Sep 17 00:00:00 2001 From: ray-x Date: Fri, 10 Feb 2023 22:06:47 +1100 Subject: [PATCH] issue #286 lazy.nvim setup instructions --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 582763d..6985d10 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,30 @@ use 'nvim-treesitter/nvim-treesitter' ``` +### [lazy.nvim](https://github.com/folke/lazy.nvim) +```lua +{ + "ray-x/go.nvim", + requires = { -- optional packages + "ray-x/guihua.lua", + "neovim/nvim-lspconfig", + "nvim-treesitter/nvim-treesitter", + }, + config = function() + require("go").setup() + end, + event = {"CmdlineEnter"}, + ft = {"go", 'gomod'}, + build = ':lua require('go.install').update_all_sync()' -- if you need to install/update all binaries +} + +``` +The go.nvim load speed is fast and you can enable it by default +image + + + + Make sure the `$GOPATH/bin` path is added to your `$PATH` environment variable. To check this you can run ```bash