aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lazy-plugins.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua
index 3ac479b..f0bd01e 100644
--- a/lua/lazy-plugins.lua
+++ b/lua/lazy-plugins.lua
@@ -38,7 +38,18 @@ require('lazy').setup({
'hrsh7th/nvim-cmp',
dependencies = {
-- Snippet Engine & its associated nvim-cmp source
- 'L3MON4D3/LuaSnip',
+ {
+ 'L3MON4D3/LuaSnip',
+ build = (function()
+ -- Build Step is needed for regex support in snippets
+ -- This step is not supported in many windows environments
+ -- Remove the below condition to re-enable on windows
+ if vim.fn.has 'win32' == 1 then
+ return
+ end
+ return 'make install_jsregexp'
+ end)(),
+ },
'saadparwaiz1/cmp_luasnip',
-- Adds LSP completion capabilities