summaryrefslogtreecommitdiff
path: root/config/plugins/treesitter.nix
blob: 047bd176a8c4453b826d7872916974899c347651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  pkgs,
  self,
  ...
}: {
  extraPlugins = [pkgs.vimPlugins.vim-just];

  plugins = {
    treesitter = {
      enable = true;

      grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars ++ [self.tree-sitter-just];

      indent = true;
      nixvimInjections = true;
    };

    ts-context-commentstring = {
      enable = true;
      disableAutoInitialization = true;
    };

    ts-autotag.enable = true;
  };
}