From 97959e7612c60f485d467052408a441c6e6958c3 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Sat, 8 Nov 2025 10:43:12 +0530 Subject: [PATCH] refactor: lua snip config updated --- lua/plugins/luasnip.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lua/plugins/luasnip.lua b/lua/plugins/luasnip.lua index bced5cc..de4e6a3 100644 --- a/lua/plugins/luasnip.lua +++ b/lua/plugins/luasnip.lua @@ -2,10 +2,8 @@ return { { "L3MON4D3/LuaSnip", - version = "2.*", - build = (not jit.os:find("Windows")) - and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp" - or nil, + version = "v2.*", + build = "make install_jsregexp", opts = { history = true, delete_check_events = "TextChanged", @@ -16,7 +14,7 @@ return { history = true, delete_check_events = "TextChanged", }) - require("luasnip.loaders.from_lua").load({ paths = "~/snippets" }) + require("luasnip.loaders.from_lua").load({ paths = { "~/snippets" } }) end, dependencies = { "hrsh7th/nvim-cmp",