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 | 1e144cf840854a731f37c2c4fef2f21f9cca45d6 (patch) | |
| tree | 935b8012ac02261485273059b0b73c94bf06b96d /nvim/init.lua | |
| parent | 2926a6fdfb36e13602ddecb8d5c9ef86b78fc7a0 (diff) | |
| download | dots-1e144cf840854a731f37c2c4fef2f21f9cca45d6.tar.gz | |
Add Build Step to LuaSnip (#611)
Diffstat (limited to 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index c7e6400..fd4567d 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -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 |