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.
This commit is contained in:
Matthieu Coudron 2022-01-26 22:22:16 +01:00 committed by Matthieu Coudron
parent 7510d8e842
commit 1705882eb6
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

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