neovim: add tree-sitter-d2 grammar

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-10 22:26:33 +03:00
parent 113e44cb04
commit c36bad03eb
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -1,4 +1,4 @@
{ config, modulesPath, lib, ... }:
{ config, modulesPath, lib, pkgs, ... }:
let
inherit (lib.mod) ctrl;
@ -57,6 +57,22 @@ in
})
];
plugins.style.nvim-treesitter.extraGrammars = {
tree-sitter-d2 = rec {
language = "d2";
version = "8a9d50043d58eedf1e375b0e2059e43efd856902";
# version = "e7507ddd983427cb71b4bd96b039c382c73d65c5";
src = pkgs.fetchFromGitea {
domain = "git.pleshevski.ru";
owner = "pleshevskiy";
repo = "tree-sitter-d2";
rev = version;
sha256 = "sha256-ZhVjxo7Xi7DaHN3qabUcykflY74bUqPcOA410fA3zRk=";
# sha256 = "sha256-m7ZCxnW4Q1bQp1GhntUF7l+p6DV1p/2AJXhVeRy8Rec=";
};
};
};
plugins.style.neoformat.autoformat.enable = true;
plugins.navigation = {