Skip to content

Commit

Permalink
update tree-sitter
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Aug 21, 2024
1 parent 91f19e0 commit 72c4dc7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
9 changes: 6 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
tree-sitter = {
url = "github:viperML/tree-sitter";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};

nh = {
Expand Down
1 change: 1 addition & 0 deletions flake/flake.nix.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
tree-sitter = {
url = "github:viperML/tree-sitter";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};

nh = {
Expand Down
18 changes: 15 additions & 3 deletions modules/wrapper-manager/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,21 @@ Many things stolen from https://github.com/Gerg-L/mnw :)
(attrValues nvPlugins')

(makeOpt inputs'.tree-sitter.packages.nvim-treesitter)
(lib.attrValues (builtins.removeAttrs inputs'.tree-sitter.legacyPackages.grammars.filtered [
"tree-sitter-comment"
]))

(builtins.attrValues
(lib.getAttrs
(map (n: "tree-sitter-${n}") [
# grammars are slow AF, so don't pull the grammars for potentially big files like JSON
"scheme"
"nix"
"lua"
"rust"
"haskell"
"markdown"
"c"
"cpp"
])
inputs'.tree-sitter.legacyPackages.nvim-grammars.filtered))

(makeOpt pkgs.vimPlugins.parinfer-rust)
];
Expand Down

0 comments on commit 72c4dc7

Please sign in to comment.