diff options
author | rgarber11 <rg.1029384756@gmail.com> | 2024-02-05 13:49:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 13:49:19 -0500 |
commit | 7af594fd319fbae6b2aaa06337f3df8acbbb7f18 (patch) | |
tree | e1ae70f4d9f7479184e1ec41208f0c9bb55bc78f /init.lua | |
parent | 5d2d81b1ea7373a585fcf02e23296fe1f8bc58e7 (diff) |
Add Build Step to LuaSnip (#611)
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -100,7 +100,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 |