Skip to content

[FR] Updated/Additional textobject captures #30

@bashful-strix

Description

@bashful-strix

This may be a neovim-specific thing, but the textobject captures provided don't line up the expected ones; I've got these overrides locally which seem to do the trick:

(comment) @comment.inner

[
  (data)
  (type)
  (newtype)
] @class.inner @class.outer

((signature)?
 (function
   rhs: (_) @function.inner)) @function.outer 

(exp_lambda) @function.outer

(data
  (type_variable) @parameter.inner @parameter.outer)

(patterns
  (_) @parameter.inner @parameter.outer)

Happy to raise a PR to either replace or add these in addition if desired. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions