summaryrefslogtreecommitdiffstats
path: root/modules/plugins/treesitter/ts-textobjects/textobjects.nix
blob: 07e721354e51bbe2e9014981dff143162e0d37e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{lib, ...}: let
  inherit (lib.options) mkEnableOption;
  inherit (lib.nvim.types) mkPluginSetupOption;
in {
  options.vim.treesitter.textobjects = {
    enable = mkEnableOption "Treesitter textobjects";
    setupOpts =
      mkPluginSetupOption "treesitter-textobjects" {}
      // {
        example = {
          select = {
            enable = true;
            lookahead = true;
            keymaps = {
              af = "@function.outer";
            };
          };
        };
      };
  };
}