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',