You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Global options are defined here-- lookahead = true,keymaps= {
["af"] = {
textobject="@function.outer",
-- If these options aren't given the global/default ones-- are used.lookahead=true,
auto_expand=true,
},
-- This form is valid, and it uses the global options.
["if"] ="@function.inner"
}
The text was updated successfully, but these errors were encountered:
I also think it is relevant for another use case : I added a custom @type to my custom files so I can select the type of a declaration for example in int i = 8 I can select int. Here I clearly prefer lookbehind than lookahead but do not want to modify global settings.
I therefore made a PR #588
Features like #150 and #125 would benefit from being per-mapping/objects instead of global options.
Our current settings look like this
We could extend them to something like
The text was updated successfully, but these errors were encountered: