neovim: add tree-sitter-d2 grammar
This commit is contained in:
parent
113e44cb04
commit
c36bad03eb
1 changed files with 17 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue