Skip to content

Commit

Permalink
Add Build Step to LuaSnip (nvim-lua#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgarber11 committed Feb 5, 2024
1 parent 5d2d81b commit 7af594f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7af594f

Please sign in to comment.