plugins.flash.modes.treesitterSearch.label.after
show the label after the match
Plugin default: true
Type: null or boolean or list of signed integer
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.before
show the label before the match
Plugin default: false
Type: null or boolean or list of signed integer
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.current
add a label for the first match in the current window.
you can always jump to the first match with <CR>
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.distance
for the current window, label targets closer to the cursor first
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.exclude
add any labels with the correct case here, that you want to exclude
Plugin default: ""
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.format
With format
, you can change how the label is rendered.
Should return a list of [text, highlight]
tuples.
@class Flash.Format
@field state Flash.State
@field match Flash.Match
@field hl_group string
@field after boolean
@type fun(opts:Flash.Format): string[][]
Plugin default:
format = function(opts)
return { { opts.match.label, opts.hl_group } }
end
Type: null or lua function string
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.minPatternLength
minimum pattern length to show labels Ignored for custom labelers.
Plugin default: 0
Type: null or signed integer or floating point number or raw lua code
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.reuse
flash tries to re-use labels that were already assigned to a position, when typing more characters. By default only lower-case labels are re-used.
Plugin default: "lowercase"
Type: null or one of “lowercase”, “all”, “none” or raw lua code
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.style
position of the label extmark
Plugin default: "overlay"
Type: null or one of “eol”, “overlay”, “right_align”, “inline” or raw lua code
Default:
null
Declared by:
plugins.flash.modes.treesitterSearch.label.uppercase
allow uppercase labels
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by: