Added @dam9000 guard to improve Windows experience, plus comment explaining build step
This commit is contained in:
parent
da3d4be567
commit
36b8af27af
10
init.lua
10
init.lua
|
@ -102,7 +102,15 @@ require('lazy').setup({
|
||||||
-- Snippet Engine & its associated nvim-cmp source
|
-- Snippet Engine & its associated nvim-cmp source
|
||||||
{
|
{
|
||||||
'L3MON4D3/LuaSnip',
|
'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',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue