Skip to content

Commit

Permalink
fix: disable snippetNode as parent.
Browse files Browse the repository at this point in the history
It violates with the current_node.parent != snippet-assumption, and
isn't really well-defined.
  • Loading branch information
L3MON4D3 committed Sep 4, 2023
1 parent 8fb300e commit ea3a559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/luasnip/nodes/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ local function wrap_context(context)
end

local function linkable_node(node)
-- node.type has to be one of insertNode, snippetNode, exitNode.
return vim.tbl_contains({types.insertNode, types.snippetNode, types.exitNode}, rawget(node, "type"))
-- node.type has to be one of insertNode, exitNode.
return vim.tbl_contains({types.insertNode, types.exitNode}, rawget(node, "type"))
end

local cmp_functions = {
Expand Down

0 comments on commit ea3a559

Please sign in to comment.