/ plugins / treesitter / default.nix
default.nix
 1  {
 2    inputs,
 3    mkPlugin,
 4    pkgs,
 5    ...
 6  }:
 7  let
 8    inherit (builtins) readFile;
 9  in
10  mkPlugin {
11    name = "treesitter";
12    src = inputs.nvim-treesitter;
13  
14    inputs = with pkgs; [
15      gcc
16      git
17      nodejs
18      tree-sitter
19    ];
20  
21    depends = [ "nvim-treesitter-endwise" ];
22  
23    config = readFile ./configuration.lua;
24  }