Skip to content

Commit 7af594f

Browse files
authored
Add Build Step to LuaSnip (#611)
1 parent 5d2d81b commit 7af594f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

init.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,18 @@ require('lazy').setup({
100100
'hrsh7th/nvim-cmp',
101101
dependencies = {
102102
-- Snippet Engine & its associated nvim-cmp source
103-
'L3MON4D3/LuaSnip',
103+
{
104+
'L3MON4D3/LuaSnip',
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 the below condition to re-enable on windows
109+
if vim.fn.has 'win32' == 1 then
110+
return
111+
end
112+
return 'make install_jsregexp'
113+
end)(),
114+
},
104115
'saadparwaiz1/cmp_luasnip',
105116

106117
-- Adds LSP completion capabilities

0 commit comments

Comments
 (0)