Skip to content

Commit

Permalink
fix: handle newlines in autocomplete suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
eero-lehtinen committed Oct 13, 2024
1 parent 7f2f74f commit 33946d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/blink/cmp/windows/autocomplete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ function autocomplete.draw()
for _, item in ipairs(autocomplete.items) do
local kind = require('blink.cmp.types').CompletionItemKind[item.kind] or 'Unknown'
local kind_icon = config.kind_icons[kind] or config.kind_icons.Field
item.label = item.label:gsub('\n', '\\n')

table.insert(
components_list,
Expand Down

0 comments on commit 33946d6

Please sign in to comment.