diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-12-03 08:41:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 08:41:10 +0100 |
| commit | 486ab5677618ffc6b05b4f071f79349fa4081022 (patch) | |
| tree | 9b0b7d28ee9095c796cb561ddac33ff81e53fc21 /scratch/ts_example.lua | |
| parent | 424b98df154a333c3b85d48e7e435892c5854dfe (diff) | |
Feat: Displayer now supports highlights for separator and elements (#304)
Separator Example: When creating the displayer
```lua
local displayer = entry_display.create {
separator = " ",
separator_hl = 'Visual', -- New
items = {
{ width = opts.bufnr_width },
{ width = 4 },
{ remaining = true },
},
}
```
Elements Example: When submitting data
```lua
local hl_group = x == y then 'Normal' or 'Visual'
return displayer {
entry.bufnr,
{ entry.indicator, hl_group },
display_bufname .. ":" .. entry.lnum,
}
```
Diffstat (limited to 'scratch/ts_example.lua')
0 files changed, 0 insertions, 0 deletions
