Skip to content

Comments

language/go: add gopher.nvim#1403

Draft
snoweuph wants to merge 1 commit intoNotAShelf:mainfrom
snoweuph:feat/go-extra
Draft

language/go: add gopher.nvim#1403
snoweuph wants to merge 1 commit intoNotAShelf:mainfrom
snoweuph:feat/go-extra

Conversation

@snoweuph
Copy link
Contributor

@snoweuph snoweuph commented Feb 8, 2026

add gopher.nvim

I really want gomodifytags and impl support, but besides go.nvim, which is heavy and this, the single goal plugins are all unmaintained.

Waiting for: NixOS/nixpkgs#488212 as with this mr, the :GoImpl will fail, due to nixpkgs beeing outdated

Sanity Checking

  • I have updated the changelog as per my changes
  • I have tested, and self-reviewed my code
  • My changes fit guidelines found in hacking nvf
  • Style and consistency
    • I ran Alejandra to format my code (nix fmt)
    • My code conforms to the editorconfig configuration of the project
    • My changes are consistent with the rest of the codebase
  • If new changes are particularly complex:
    • My code includes comments in particularly complex areas
    • I have added a section in the manual
    • (For breaking changes) I have included a migration guide
  • Package(s) built:
    • .#nix (default package)
    • .#maximal
    • .#docs-html (manual, must build)
    • .#docs-linkcheck (optional, please build if adding links)
  • Tested on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

Add a 👍 reaction to pull requests you find important.

impl = mkOption {
description = "impl binary to use";
type = str;
default = getExe pkgs.impl;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@horriblename, think we can just patch it in for now with an increased tag? looking at https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/im/impl/package.nix#L9 it doesn't seem to be that complicated of a package, and I don't see any reason in the src, why it shouldn't build anymore, after bumping the tag.

OR is such a thing, something we don't do at nvf?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like its soon updated on nixpkgs: NixOS/nixpkgs#488245

though I guess we will need to wait a bit before a hydra build provides it on usntable :D

Copy link
Contributor Author

@snoweuph snoweuph Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its merged upstream and hydra build is also done on unstable channel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened Upstream Issue, as the problem was not impl beeing an older version, as its now at 1.5.0 as well olexsmir/gopher.nvim#134

github-actions bot pushed a commit that referenced this pull request Feb 8, 2026
@github-actions
Copy link

github-actions bot commented Feb 8, 2026

🚀 Live preview deployed from d6338d4

View it here:

Debug Information

Triggered by: snoweuph

HEAD at: feat/go-extra

Reruns: 2106

go = mkOption {
description = "go binary to use";
type = str;
default = "go";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normally projects provide their own go version (via PATH) with for example a devshell.

i didn't want to leave one of the command options out though.
As why the the others are pointing at nix packages: you might not have them in your path, and the plugin will break without the bins.
And everybody developing with go, needs to have some go to use, but not everybody has the extra bins installed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its basicly the same as we do with rust, or any other language

@snoweuph
Copy link
Contributor Author

rebased -> showing I didnt forgot this and for my future sanity :D

@snoweuph
Copy link
Contributor Author

rebased. still waiting for plugin upstream issue to get resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant