tree-sitter-org-nvim: renaming of tree-sitter-org-nvim

There are likely to be several "org" grammars so suffixing them seems
better in the long term see https://github.com/NixOS/nixpkgs/pull/145940

I haven't provided an alias since this grammar was introduced a few days
ago only.
main
Matthieu Coudron 2 years ago committed by Matthieu Coudron
parent 7510d8e842
commit 1705882eb6
  1. 3
      pkgs/development/tools/parsing/tree-sitter/default.nix
  2. 2
      pkgs/development/tools/parsing/tree-sitter/grammars/default.nix
  3. 0
      pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-org-nvim.json
  4. 2
      pkgs/development/tools/parsing/tree-sitter/update.nix

@ -58,7 +58,7 @@ let
let
change = name: grammar:
callPackage ./grammar.nix { } {
language = name;
language = if grammar ? language then grammar.language else name;
inherit version;
source = fetchGrammar grammar;
location = if grammar ? location then grammar.location else null;
@ -67,6 +67,7 @@ let
grammars = grammars' //
{ tree-sitter-ocaml = grammars'.tree-sitter-ocaml // { location = "ocaml"; }; } //
{ tree-sitter-ocaml-interface = grammars'.tree-sitter-ocaml // { location = "interface"; }; } //
{ tree-sitter-org-nvim = grammars'.tree-sitter-org-nvim // { language = "org"; }; } //
{ tree-sitter-typescript = grammars'.tree-sitter-typescript // { location = "typescript"; }; } //
{ tree-sitter-tsx = grammars'.tree-sitter-typescript // { location = "tsx"; }; };
in

@ -54,7 +54,7 @@
tree-sitter-nix = lib.importJSON ./tree-sitter-nix.json;
tree-sitter-norg = lib.importJSON ./tree-sitter-norg.json;
tree-sitter-ocaml = lib.importJSON ./tree-sitter-ocaml.json;
tree-sitter-org = lib.importJSON ./tree-sitter-org.json;
tree-sitter-org-nvim = lib.importJSON ./tree-sitter-org-nvim.json;
tree-sitter-perl = lib.importJSON ./tree-sitter-perl.json;
tree-sitter-php = lib.importJSON ./tree-sitter-php.json;
tree-sitter-pioasm = lib.importJSON ./tree-sitter-pioasm.json;

@ -304,7 +304,7 @@ let
orga = "victorhqc";
repo = "tree-sitter-prisma";
};
"tree-sitter-org" = {
"tree-sitter-org-nvim" = {
orga = "milisims";
repo = "tree-sitter-org";
};

Loading…
Cancel
Save