From ea3a559fe00ed661bb7d87798b9db8464905d190 Mon Sep 17 00:00:00 2001 From: L3MON4D3 Date: Mon, 4 Sep 2023 17:22:36 +0200 Subject: [PATCH] fix: disable snippetNode as parent. It violates with the current_node.parent != snippet-assumption, and isn't really well-defined. --- lua/luasnip/nodes/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/luasnip/nodes/util.lua b/lua/luasnip/nodes/util.lua index 88509b67a..559b3bd5d 100644 --- a/lua/luasnip/nodes/util.lua +++ b/lua/luasnip/nodes/util.lua @@ -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 = {