From 9b3afe51c49a77b73d21af16dec322afa111e2cd Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Thu, 7 Jul 2022 16:45:32 +0200 Subject: [PATCH] fix: autocmd, show desc if available (#2046) --- lua/telescope/make_entry.lua | 6 +++++- lua/telescope/previewers/buffer_previewer.lua | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 805218e..b567237 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -1177,12 +1177,16 @@ function make_entry.gen_from_autocommands(opts) return function(entry) local group_name = vim.F.if_nil(entry.group_name, "") + local command = entry.command + if entry.desc and vim.startswith(command, "