{
description = "Basic flake with home-manager for testing";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/?rev=9ef261221d1e72399f2036786498d78c38185c46";
home-manager = {
url = "github:nix-community/home-manager/?rev=34578a2fdfce4257ce5f5baf6e7efbd4e4e252b1";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
homeConfigurations."testuser" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
home.username = "testuser";
home.homeDirectory = "/home/testuser";
home.stateVersion = "25.11";
programs.home-manager.enable = true;
programs.neovim = {
enable = true;
plugins = [
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
];
};
}
];
};
};
}
With the previous flake, the following line seems to make no difference in the derivation
plugins = [
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
];
I tried look for the parsers and/or grammars in the result directory but it seems that only the default ones are there. I’m trying to bundle all of them but apparently it’s not working or I’m not verifying correctly.
Was anyone able to bundle treesitter in neovim without hacky ways?
I’ve used the following links as documentation: