Skip to content

Commit

Permalink
Merge pull request #3 from nvim-lua/master
Browse files Browse the repository at this point in the history
Add Build Step to LuaSnip (nvim-lua#611)
  • Loading branch information
khsoh authored Feb 6, 2024
2 parents 23ddf05 + ae1ed10 commit 3be1f37
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 @@ -102,7 +102,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 3be1f37

Please sign in to comment.