We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69dc479 commit 9ac195cCopy full SHA for 9ac195c
lua/blink/cmp/completion/accept/init.lua
@@ -33,6 +33,9 @@ local function apply_item(ctx, item)
33
local parsed_snippet = require('blink.cmp.sources.snippets.utils').safe_parse(item.textEdit.newText)
34
if
35
parsed_snippet ~= nil
36
+ -- snippets automatically handle identation on newlines, while our implementation does not,
37
+ -- so ignore for muli-line snippets
38
+ and #vim.split(tostring(parsed_snippet), '\n') == 1
39
and #parsed_snippet.data.children == 1
40
and parsed_snippet.data.children[1].type == vim.lsp._snippet_grammar.NodeType.Text
41
then
0 commit comments