Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Neorg does not work due to missing dependency #1395

Open
1 task done
vendion opened this issue Apr 8, 2024 · 11 comments
Open
1 task done

[BUG] Neorg does not work due to missing dependency #1395

vendion opened this issue Apr 8, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@vendion
Copy link

vendion commented Apr 8, 2024

Field Description
Plugin neorg
Nixpkgs unstable
Home Manager unstable
  • I have read the FAQ and my bug is not listed there.

Description

It seems the version of the neorg plugin got bumpped and now no longer works due to a missing dependency. on lua-utils. It seems this dependency was added in v8.0.0 but the change must have only recently hit nixpkgs unstable.

Minimal, Reproducible Example (MRE)

programs.nixvim = {
    plugins.neorg.enable = true;
}
@vendion vendion added the bug Something isn't working label Apr 8, 2024
@amalgame21
Copy link

I think this is the related discussion: nvim-neorg/neorg#1342
I just use the neorg from nixos-23.11 branch
For standalone configuration: #1397 (comment)

@vendion
Copy link
Author

vendion commented Apr 9, 2024

In the mean time yes I know I can use the Neorg package from stable, but at the same time it would be nice for the latest version be fixed as well.

@Kintaro
Copy link

Kintaro commented Apr 9, 2024

I think a fix for that needs to be landed in nixpkgs for a proper fix, not in nixvim. I'd love for a simple way to fix it without resorting to the stable fix, cause it kinda doesn't work on my end.

@GaetanLepage
Copy link
Member

Thank you for reporting. I am aware about this.
However, we cannot do much on the nixvim side.

The solution has to be implemented on the nixpkgs side: we should package neorg as a lua package (luaPackages.neorg) there and build vimPlugins.neorg on top of it.
This is worked on here.

@71zenith
Copy link

Another solution is found is to declare their official overlay to override the bugged package
https://github.com/nvim-neorg/nixpkgs-neorg-overlay

@sachinchaudhary1808
Copy link

they updated there pkg
image
now it should work ha ?

@MattSturgeon
Copy link
Member

they updated there pkg, now it should work ha ?

I'll close this then. We can re-open if the issue is still present.

@GaetanLepage
Copy link
Member

I'll close this then. We can re-open if the issue is still present.

The update has nothing to do with the general issue which is not neorg-specific.
Indeed, the core problem here is that the lua dependencies of "neovim plugins" in nixpkgs (i.e. built from a luaPackage.*) are not propagated.
This is the same reason why luasnip complains with missing the jsregexp library.

@GaetanLepage GaetanLepage reopened this May 30, 2024
@Thiago-Assis-T
Copy link

Is there something still needed for this to work?

@MattSturgeon
Copy link
Member

Is there something still needed for this to work?

This PR is where it's being worked on: NixOS/nixpkgs#302442

As mentioned above, you can use the overlay as a temporary workaround.

@Thiago-Assis-T
Copy link

sorry, came out rude, thank you for the response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants