Neorg on NixOS
#1392
Replies: 1 comment 1 reply
-
The norg meta grammar is in If you don't want to move to unstable completely, you can do something like this in your config. {
plugins =
let
unstable = import (
builtins.fetchGit {
url = "https://github.com/nixos/nixpkgs/";
ref = "refs/heads/nixos-unstable";
}
);
in
[
# your other plugins
unstable.vimPlugins.nvim-treesitter.withAllGrammars
];
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for a way to setup the latest version of Neorg declaratively on NixOS in a home-manager Neovim configuration.
The attempt (one among countless previous ones)
Fetched the latest release of neorg from GitHub (the current one on nixpkgs still has a bug when deleting the last line of a file)
I then use it in my neovim home-manager module, and declare the dependencies explicitly (on nixpkgs, these dependencies are not provided either anyway) :
The problem
The
norg_meta
parser is not provided bynvim-treesitter.withAllGrammar
. Thus, Neorg sometimes fail (e.g. when opening journal toc).Since treesitter is managed by Nix,
:Neorg sync-parsers
fails because it tries to write in the Nix store.The
norg
parser works (is it part of the treesitter distribution on nixpkgs maybe? is that version up to date anyway?).The question
Could somebody help me find a decent way to get Neorg up and running on NixOS in a declarative way?
Beta Was this translation helpful? Give feedback.
All reactions