From bdb7636e6b2e587eb2e4d9cb74b91efab1e50928 Mon Sep 17 00:00:00 2001 From: Anurag Kumar Singh Date: Thu, 10 Sep 2026 11:32:23 +0530 Subject: [PATCH] Added highlight group for telescrope picker --- lua/platformio/pickers/telescope.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lua/platformio/pickers/telescope.lua b/lua/platformio/pickers/telescope.lua index d180099..8a77228 100644 --- a/lua/platformio/pickers/telescope.lua +++ b/lua/platformio/pickers/telescope.lua @@ -13,6 +13,7 @@ local utils = require('platformio.utils') local function boardentry_maker(opts) local displayer = entry_display.create({ separator = '▏', + separator_hl = 'Delimiter', items = { { width = 35 }, { width = 20 }, @@ -22,9 +23,9 @@ local function boardentry_maker(opts) local make_display = function(entry) return displayer({ - entry.value.name, - entry.value.vendor, - entry.value.platform, + { entry.value.name, 'Title' }, + { entry.value.vendor, 'TelescopeResultsNumber' }, + { entry.value.platform, 'TelescopeResultsIdentifier' }, }) end @@ -46,18 +47,19 @@ end local function libentry_maker(opts) local displayer = entry_display.create({ separator = '▏', + separator_hl = 'Delimiter', items = { - { width = 20 }, - { width = 20 }, + { width = 25 }, + { width = 15 }, { remaining = true }, }, }) local make_display = function(entry) return displayer({ - entry.value.name, - entry.value.owner, - entry.value.description, + { entry.value.name, 'Title' }, + { entry.value.owner, 'TelescopeResultsIdentifier' }, + { entry.value.description, 'TelescopeResultsComment' }, }) end