neovim configuration using rocks.nvim plugin manager

feat(queries): better norg highlight queries

+29 -20
+29 -20
after/queries/norg/highlights.scm
··· 55 55 (underline) @markup.underline 56 56 (strikethrough) @markup.strikethrough 57 57 (verbatim) @markup.raw.verbatim @nospell 58 - (inline_macro) @function.macro 58 + (inline_macro 59 + "\\" @function.macro 60 + name: (_) @function.macro) 61 + 62 + (paragraph) @spell 63 + (_ 64 + target: (_) @nospell) 65 + (verbatim) @nospell 59 66 60 67 ( [ 61 68 (bold [(bold_open) (bold_close)] @conceal) 62 69 (italic [(italic_open) (italic_close)] @conceal) 63 70 (underline [(underline_open) (underline_close)] @conceal) 64 71 (strikethrough [(strikethrough_open) (strikethrough_close)] @conceal) 65 - (verbatim [(verbatim_open) (verbatim_close)] @conceal) 72 + (verbatim [(verbatim_open) (verbatim_close)] @_markup) 73 + (link ["[" "]" "{" "}"] @conceal) 74 + (anchor ["[" "]" "{" "}"] @conceal) 66 75 ] 67 76 (#set! conceal "")) 68 77 69 - (link 70 - [ 71 - "[" 72 - "]" 73 - "{" 74 - "}" 75 - ] @conceal 78 + (_ 79 + target: (scoped_target 80 + . ":" @conceal) 76 81 (#set! conceal "")) 82 + 77 83 ;; only conceal target when markup exists for that link 78 84 (link 79 85 target: (_) @conceal 80 86 markup: (_) 81 87 (#set! conceal "")) 88 + (anchor 89 + target: (_) @conceal 90 + (#set! conceal "")) 82 91 (link 83 92 markup: (_) @markup.link) 84 93 (link 85 94 target: (_) @markup.link 86 95 !markup) 87 96 (anchor 88 - [ 89 - "[" 90 - "]" 91 - "{" 92 - target: (_) 93 - "}" 94 - ] @conceal 95 - (#set! conceal "")) 96 - (anchor 97 97 markup: (_) @markup.link) 98 98 99 99 (escape_sequence) @string.escape 100 100 (hard_break) @string.escape 101 101 102 - ((escape_sequence) @conceal 103 - (#offset! @conceal 0 0 0 -1) 102 + ((escape_sequence) @_conceal 103 + (#offset! @_conceal 0 0 0 -1) 104 104 (#set! conceal "")) 105 105 106 106 ((hard_break) @conceal 107 107 (#set! conceal "")) 108 + 109 + ((attributes) @conceal 110 + (#has-ancestor? @conceal paragraph) 111 + (#set! conceal "")) 112 + 113 + (attribute 114 + key: (_) @variable.member) 115 + (attribute 116 + value: (_) @string) 108 117 109 118 (ranged_tag 110 119 [