{ lib
, stdenv
, rustPlatform
}:

rustPlatform.buildRustPackage rec {
  pname = "kak-tree-sitter";
  version = "1.1.2";

  src = fetchGit {
    url = "https://git.sr.ht/~hadronized/kak-tree-sitter";
    rev = "a5eea435f0f483b66d09615ece7bdea599786f26";
  };

  cargoHash = "sha256-BrE2yDDxEVPknTN9P7l8dnJQc4KIBOWDGX+MJev4Ruk=";

  meta = {
    description = "tree-sitter plugin for kakoune";
  };
}
