Skip to content

Commit

Permalink
Add update_capabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 committed Feb 1, 2023
1 parent 6385146 commit bba9164
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/luasnip/extras/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,13 @@ function M.apply_text_edits(snippet_or_text_edits, bufnr, offset_encoding, apply
})
end

function M.update_capabilities(capabilities)
if not capabilities.experimental then
capabilities.experimental = {}
end
capabilities.experimental.snippetTextEdit = true

return capabilities
end

return M

0 comments on commit bba9164

Please sign in to comment.