mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-12-20 08:10:09 +01:00
22 lines
500 B
Nix
22 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";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|