Skip to content

Commit 36b8af2

Browse files
author
Richard Garber
committed
Added @dam9000 guard to improve Windows experience, plus comment explaining build step
1 parent da3d4be commit 36b8af2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

init.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,15 @@ require('lazy').setup({
102102
-- Snippet Engine & its associated nvim-cmp source
103103
{
104104
'L3MON4D3/LuaSnip',
105-
build = 'make install_jsregexp',
105+
build = (function()
106+
-- Build Step is needed for regex support in snippets
107+
-- This step is not supported in many windows environments
108+
-- Remove if your windows setup supports this
109+
if vim.fn.has 'win32' == 1 then
110+
return
111+
end
112+
return 'make install_jsregexp'
113+
end)(),
106114
},
107115
'saadparwaiz1/cmp_luasnip',
108116

0 commit comments

Comments
 (0)