From 63e7047b635082d17f2973d208aeae14378cd6f9 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 28 Oct 2024 16:18:31 -0700 Subject: [PATCH] Update to avoid using go.nvim if nvim is too old --- neovim/lua/lazy_plugins.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neovim/lua/lazy_plugins.lua b/neovim/lua/lazy_plugins.lua index 288121e..3f528c8 100644 --- a/neovim/lua/lazy_plugins.lua +++ b/neovim/lua/lazy_plugins.lua @@ -567,6 +567,11 @@ return { event = { "CmdlineEnter" }, ft = { "go", "gomod" }, build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries + version = utils.map_version_rule({ + [">=0.10.0"] = utils.nil_val, + ["<0.10.0"] = "v0.9.0", + }), + enabled = vim.fn.has("nvim-0.9") == 1, }, { "https://github.com/sheerun/vim-polyglot",