AstroNvim / astrocommunity

A community repository of common plugin specifications
GNU General Public License v3.0
1.04k stars 212 forks source link

fix(go): set default go binary to `"go"` #1053

Closed rami3l closed 1 week ago

rami3l commented 1 week ago

📑 Description

This prevents the error message that comes with the newer versions of go.nvim:

  if vim.fn.empty(_GO_NVIM_CFG.go) == 1 then
    vim.notify('go.nvim go binary is not setup', vim.log.levels.ERROR)
  end

https://github.com/ray-x/go.nvim/blob/b3ee7aea17d5b7acd1e3007efa7ac0e43947ad0c/lua/go.lua#L233-L235

ℹ Additional Information

I think the author could've given a good default to this value and make it overridable instead of issuing a hard error, but alas...

Tested with the following config override locally:

  { "ray-x/go.nvim", opts = { go = "go" } },
github-actions[bot] commented 1 week ago

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

Uzaaft commented 1 week ago

The fact that this is needed due to the hard error is just stupid...Thanks!