Skip to content

Per mapping/object optionsΒ #156

@stsewd

Description

@stsewd

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions