feat: add treesitter textobjects

This commit is contained in:
Christoph Koehler 2025-05-08 18:52:16 -06:00
commit 054e4a3b9c
No known key found for this signature in database
6 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,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";
};
};
};
};
};
}