Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from aklk1ng/main
Browse files Browse the repository at this point in the history
fix: when snippet's body is not a single-lin string
  • Loading branch information
glepnir authored Feb 1, 2024
2 parents ab70931 + c64d40a commit e858430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/epo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ local function extend_snippets(ft)
for k, v in pairs(t) do
local e = {
label = k,
insertText = v.body[1],
insertText = type(v.body) == 'string' and v.body or table.concat(v.body, '\n'),
kind = 15,
insertTextFormat = 2,
}
Expand Down

0 comments on commit e858430

Please sign in to comment.