mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
21 lines
500 B
Nix
21 lines
500 B
Nix
{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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|