Simon Hauser
486ab56776
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,
}
```
2020-12-03 08:41:10 +01:00
..
2020-11-23 09:29:10 -05:00
2020-08-31 17:32:31 -04:00
2020-12-03 00:37:07 -05:00
2020-10-30 18:01:27 -04:00
2020-12-02 23:54:09 -05:00
2020-10-27 23:33:49 -04:00
2020-12-03 08:41:10 +01:00
2020-10-06 21:57:49 -04:00
2020-11-22 10:57:31 +01:00
2020-09-29 22:52:38 -04:00
2020-11-13 10:20:09 -05:00
2020-10-08 22:53:44 -04:00
2020-09-16 18:20:14 -04:00
2020-11-23 09:29:10 -05:00
2020-09-29 22:52:38 -04:00
2020-12-03 08:41:10 +01:00
2020-11-24 15:29:46 -05:00
2020-09-28 17:03:59 -04:00
2020-11-23 10:11:46 -05:00
2020-12-02 00:27:54 +01:00
2020-11-23 12:30:09 -05:00
2020-11-16 10:58:30 -05:00
2020-10-08 14:24:39 -04:00
2020-11-13 15:07:12 -05:00
2020-09-23 12:12:37 -04:00