nvim-config

Log | Files | Refs | README

textobjects.scm (980B)


      1 ((displayed_equation "\\[" _+ @math.inner "\\]") @math.outer)
      2 ((inline_formula "$" _+ @math.inner "$") @math.outer)
      3 
      4 ((math_environment
      5    begin: (_) . (_) @math.inner.from @env.inner.from
      6    (_)? @math.inner.to @env.inner.to . end: (_)) @math.outer @env.outer)
      7 
      8 ((generic_environment
      9    begin: (_) . (_) @env.inner.from
     10    (_)? @env.inner.to . end: (_)) @env.outer)
     11 
     12 ((section text: _ . (_) @section.inner.from) @section.outer @section.inner.to)
     13 ((subsection text: _ . (_) @section.inner.from) @section.outer @section.inner.to)
     14 
     15 ((enum_item . (_) @item.inner.from) @item.outer @item.inner.to)
     16 
     17 (generic_command arg: (curly_group (_) @call.inner)) @call.outer
     18 
     19 ;; Colored text
     20 ((color_reference) @color.outer.from . (curly_group (_) @color.inner) @color.outer.to)
     21 ((_ (color_reference) @color.outer.from) . (curly_group (_) @color.inner) @color.outer.to)
     22 
     23 ;; Emphasis
     24 (((generic_command command: (_) @_emph arg: (curly_group (_) @emph.inner)) @emph.outer) (#eq? @_emph "\\emph"))