nvim-config

Log | Files | Refs | Submodules | README

highlights.scm (524B)


      1 ;; extends
      2 
      3 ;; Some commands should not be spellchecked
      4 [
      5  (command_name)
      6  (begin)
      7  (end)
      8  (citation)
      9  (color_reference)
     10  (package_include)
     11  (new_command_definition)
     12  (environment_definition)
     13  (label_reference)
     14  (label_definition)
     15  ] @nospell
     16 
     17 ;; Exclude some enviroments from spell-checking
     18 (
     19  (generic_environment (begin name: (curly_group_text text: (_) @_txt))) @nospell
     20  (#eq? @_txt "tikzpicture")
     21  )
     22 
     23 (
     24  (generic_command command: (_) @_name) @nospell
     25  (#contains? @_name "cite")
     26  )
     27 
     28 (key_value_pair key: (_) @nospell)