Skip to content

Commit 08ec7b9

Browse files
committed
Add update_capabilities.
1 parent 2fc871b commit 08ec7b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lua/luasnip/extras/lsp.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,13 @@ function M.apply_text_edits(snippet_or_text_edits, bufnr, offset_encoding, apply
6060
})
6161
end
6262

63+
function M.update_capabilities(capabilities)
64+
if not capabilities.experimental then
65+
capabilities.experimental = {}
66+
end
67+
capabilities.experimental.snippetTextEdit = true
68+
69+
return capabilities
70+
end
71+
6372
return M

0 commit comments

Comments
 (0)