Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit d1b3231

Browse files
committed
fix: error on multi-line snippets
1 parent f7cbced commit d1b3231

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/completion/source/lsp.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ local function text_document_completion_list_to_complete_items(result, params)
9292
item.info = info
9393

9494
item.word = get_completion_word(completion_item, params.prefix, params.suffix)
95+
item.word = item.word:gsub('\n', ' ')
9596
item.user_data = {
9697
lsp = {
9798
completion_item = completion_item,

0 commit comments

Comments
 (0)