diff --git a/flake.lock b/flake.lock index b10bb19..1ba0ca2 100644 --- a/flake.lock +++ b/flake.lock @@ -202,11 +202,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1669387357, - "narHash": "sha256-z1azVj/5Em5kGhh9OgBOsjTEgMab7hXL/aRilH9tzyI=", + "lastModified": 1670827406, + "narHash": "sha256-nLNk7uiLbhbvb4TVz67XK7+Ezr1zcWYDWmNrWGmEUqA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "55b3f68bda6d4f4dc6092eed0508063f154fa4fd", + "rev": "ffca9ffaaafb38c8979068cee98b2644bd3f14cb", "type": "github" }, "original": { @@ -337,11 +337,11 @@ "plenary-nvim": { "flake": false, "locked": { - "lastModified": 1663402373, - "narHash": "sha256-d06QP5JGhpH6UUVF9STYzfJMzvg5HrJfDqlAoVXaLeM=", + "lastModified": 1664607953, + "narHash": "sha256-lIdBrVpi+vUudeotjFAuw4C0VT8TPoFE9cVVAQEsAYU=", "owner": "nvim-lua", "repo": "plenary.nvim", - "rev": "62dc2a7acd2fb2581871a36c1743b29e26c60390", + "rev": "4b7e52044bbb84242158d977a50c4cbcd85070c7", "type": "github" }, "original": { diff --git a/plugins/syntax/default.nix b/plugins/syntax/default.nix index 5479565..067771a 100644 --- a/plugins/syntax/default.nix +++ b/plugins/syntax/default.nix @@ -24,9 +24,8 @@ let tree-sitter = (inputs.tree-sitter.override { inherit extraGrammars; }); grammars = tree-sitter.withPlugins (g: [ g.tree-sitter-d2 ]); - nvim-treesitter-with-grammars = inputs.nvim-treesitter.withAllGrammars; - nvim-treesitter = nvim-treesitter-with-grammars.overrideAttrs (oldAttrs: { - passthru.dependencies = nvim-treesitter-with-grammars.dependencies ++ [ + nvim-treesitter = inputs.nvim-treesitter.withAllGrammars.overrideAttrs (oldAttrs: { + passthru.dependencies = oldAttrs.passthru.dependencies ++ [ (runCommand "nvim-treesitter-d2-grammar" { } '' mkdir -p $out/parser ln -s ${grammars}/d2.so $out/parser/d2.so