2023-07-09 23:22:41 +00:00
|
|
|
inputs: _final: prev: {
|
|
|
|
tree-sitter-grammars = prev.tree-sitter-grammars // {
|
2023-07-30 16:43:44 +00:00
|
|
|
|
|
|
|
# Fix: bash highlighting doesn't work as of this commit:
|
|
|
|
# https://github.com/NixOS/nixpkgs/commit/49cce41b7c5f6b88570a482355d9655ca19c1029
|
2024-04-13 13:03:44 +00:00
|
|
|
tree-sitter-bash = prev.tree-sitter-grammars.tree-sitter-bash.overrideAttrs (old: {
|
|
|
|
src = inputs.tree-sitter-bash;
|
|
|
|
});
|
2023-07-30 16:43:44 +00:00
|
|
|
|
|
|
|
# Fix: invalid node in position. Broken as of this commit (replaced with newer):
|
|
|
|
# https://github.com/NixOS/nixpkgs/commit/8ec3627796ecc899e6f47f5bf3c3220856ead9c5
|
2024-04-13 13:03:44 +00:00
|
|
|
tree-sitter-python = prev.tree-sitter-grammars.tree-sitter-python.overrideAttrs (old: {
|
|
|
|
src = inputs.tree-sitter-python;
|
|
|
|
});
|
2023-07-30 16:43:44 +00:00
|
|
|
|
2023-09-30 14:20:58 +00:00
|
|
|
# Fix: invalid structure in position.
|
2024-04-13 13:03:44 +00:00
|
|
|
tree-sitter-lua = prev.tree-sitter-grammars.tree-sitter-lua.overrideAttrs (old: {
|
|
|
|
src = inputs.tree-sitter-lua;
|
|
|
|
});
|
2023-09-30 14:20:58 +00:00
|
|
|
|
2023-07-30 16:43:44 +00:00
|
|
|
# Add grammars not in nixpks
|
2023-07-09 23:22:41 +00:00
|
|
|
tree-sitter-ini = prev.tree-sitter.buildGrammar {
|
|
|
|
language = "ini";
|
|
|
|
version = "1.0.0";
|
2023-08-02 15:51:11 +00:00
|
|
|
src = inputs.tree-sitter-ini;
|
2023-07-09 23:22:41 +00:00
|
|
|
};
|
|
|
|
tree-sitter-puppet = prev.tree-sitter.buildGrammar {
|
|
|
|
language = "puppet";
|
|
|
|
version = "1.0.0";
|
2023-08-02 15:51:11 +00:00
|
|
|
src = inputs.tree-sitter-puppet;
|
2023-07-09 23:22:41 +00:00
|
|
|
};
|
|
|
|
tree-sitter-rasi = prev.tree-sitter.buildGrammar {
|
|
|
|
language = "rasi";
|
|
|
|
version = "0.1.1";
|
2023-08-02 15:51:11 +00:00
|
|
|
src = inputs.tree-sitter-rasi;
|
2023-07-09 23:22:41 +00:00
|
|
|
};
|
2024-01-28 04:46:40 +00:00
|
|
|
tree-sitter-vimdoc = prev.tree-sitter.buildGrammar {
|
|
|
|
language = "vimdoc";
|
|
|
|
version = "2.1.0";
|
|
|
|
src = inputs.tree-sitter-vimdoc;
|
|
|
|
};
|
2023-07-09 23:22:41 +00:00
|
|
|
};
|
|
|
|
}
|