Skip to content

Commit 4d93dce

Browse files
Add documentation for g:qs_hi_priority update
Commit 4d7ef43 allows g:qs_hi_priority to be set by the user, this adds documentation to the help file and the README to explain it.
1 parent f0cb181 commit 4d93dce

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ augroup qs_colors
114114
augroup END
115115
```
116116

117+
The highlight groups are applied using a priority (see: `:help :syn-priority`
118+
and `:help matchadd()` for more detail). The default priority used is `1` but
119+
you can override this if needed by setting it yourself using:
120+
```vim
121+
let g:qs_hi_priority = 2
122+
```
123+
117124
### Toggle highlighting
118125
Turn the highlighting on and off with a user command:
119126
```

doc/quick-scope.txt

+10
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ commands.
203203
augroup END
204204
<
205205

206+
207+
*g:qs_hi_priority*
208+
The highlight groups are applied using |matchadd()| with a priority
209+
(|:syn-priority|). The default priority used is `1` but you can override this
210+
if needed by setting it yourself using:
211+
212+
>
213+
let g:qs_hi_priority = 2
214+
<
215+
206216
4.3 ACCEPTED CHARACTERS *qs-accepted-chars*
207217
------------------------------------------------------------------------------
208218

0 commit comments

Comments
 (0)