Skip to content

Commit

Permalink
fix(menu): don't add separator after detail if no documentation is pr…
Browse files Browse the repository at this point in the history
…esent
  • Loading branch information
max397574 committed Oct 20, 2024
1 parent ecb1b51 commit fc48e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/care/menu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc48e37

Please sign in to comment.