aboutsummaryrefslogtreecommitdiff
path: root/lua/lazy-plugins.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-02-05 19:55:38 +0100
committerDamjan 9000 <damjan.9000@gmail.com>2024-02-05 19:55:38 +0100
commit4e7e6642a6a5b76c0dbb0e86748fcb12b4c95012 (patch)
tree47ac514484ba62429ac4603f2aba218170d743bb /lua/lazy-plugins.lua
parent281b729c7fa213b3434540878570103d68109dcb (diff)
parent7af594fd319fbae6b2aaa06337f3df8acbbb7f18 (diff)
Merge 'upstream/master' Add Build Step to LuaSnip
Diffstat (limited to 'lua/lazy-plugins.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