From fc48e370d8dd2693fa08e644bbd00251d67d59ab Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 13 Oct 2024 10:00:00 +0200 Subject: [PATCH] fix(menu): don't add separator after detail if no documentation is present --- lua/care/menu/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/care/menu/init.lua b/lua/care/menu/init.lua index 94f234d..e489218 100644 --- a/lua/care/menu/init.lua +++ b/lua/care/menu/init.lua @@ -65,7 +65,7 @@ function Menu:draw_docs(entry) end if completion_item.detail and completion_item.detail ~= "" then - table.insert(contents, 1, completion_item.detail .. "\n---") + table.insert(contents, 1, completion_item.detail .. (documentation and "\n---" or "")) end local menu_border = self.config.ui.menu.border