generated from nvim-treesitter/module-template
-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Features like #150 and #125 would benefit from being per-mapping/objects instead of global options.
Our current settings look like this
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
}We could extend them to something like
-- 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"
}pockata, soolaimon and linjiX
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request