From 3e425d83496ae10ad644a3407f8d5d48ddb6426c Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Tue, 27 Feb 2024 12:32:53 +0100 Subject: [PATCH] plugins: improve LuaSnip configuration Co-Authored-by: iGor milhit --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index dadf85f..66ced86 100644 --- a/init.lua +++ b/init.lua @@ -62,7 +62,13 @@ require('lazy').setup({ 'hrsh7th/nvim-cmp', dependencies = { -- Snippet Engine & its associated nvim-cmp source - 'L3MON4D3/LuaSnip', + { + 'L3MON4D3/LuaSnip', + -- follow latest release + version = "v2.*", + -- install jsregexp (optional) + build = "make install_jsregexp" + }, 'saadparwaiz1/cmp_luasnip', -- Adds LSP completion capabilities