From 36b8af27af2e874ee749fd6fc72bdc9ac80b3a11 Mon Sep 17 00:00:00 2001 From: Richard Garber Date: Mon, 5 Feb 2024 00:13:11 -0500 Subject: [PATCH] Added @dam9000 guard to improve Windows experience, plus comment explaining build step --- init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b6714ba9..c50142f7 100644 --- a/init.lua +++ b/init.lua @@ -102,7 +102,15 @@ require('lazy').setup({ -- Snippet Engine & its associated nvim-cmp source { 'L3MON4D3/LuaSnip', - build = 'make install_jsregexp', + build = (function() + -- Build Step is needed for regex support in snippets + -- This step is not supported in many windows environments + -- Remove if your windows setup supports this + if vim.fn.has 'win32' == 1 then + return + end + return 'make install_jsregexp' + end)(), }, 'saadparwaiz1/cmp_luasnip',