Update to avoid using go.nvim if nvim is too old

This commit is contained in:
ViViDboarder 2024-10-28 16:18:31 -07:00
parent 54da69cd40
commit 63e7047b63

View File

@ -567,6 +567,11 @@ return {
event = { "CmdlineEnter" }, event = { "CmdlineEnter" },
ft = { "go", "gomod" }, ft = { "go", "gomod" },
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries 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", "https://github.com/sheerun/vim-polyglot",