27 lines
688 B
Nix
27 lines
688 B
Nix
{...}: {
|
|
vim.treesitter.textobjects = {
|
|
enable = true;
|
|
setupOpts = {
|
|
select = {
|
|
enable = true;
|
|
lookahead = true;
|
|
keymaps = {
|
|
"af" = "@function.outer";
|
|
"if" = "@function.inner";
|
|
"ac" = "@class.outer";
|
|
"ic" = "@class.inner";
|
|
"aa" = "@parameter.outer";
|
|
"ia" = "@parameter.inner";
|
|
};
|
|
};
|
|
move = {
|
|
enable = true;
|
|
set_jumps = true;
|
|
goto_next_start."]f" = "@function.outer";
|
|
goto_previous_start."[f" = "@function.outer";
|
|
goto_next_end."]F" = "@function.outer";
|
|
goto_previous_end."[F" = "@function.outer";
|
|
};
|
|
};
|
|
};
|
|
}
|