Skip to content

Commit 366f401

Browse files
VlaDexatjdevries
andauthored
Move friendly snippets to dependencies of LuaSnip (nvim-lua#759)
Co-authored-by: TJ DeVries <[email protected]>
1 parent ed32b88 commit 366f401

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

init.lua

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,17 @@ require('lazy').setup({
635635
end
636636
return 'make install_jsregexp'
637637
end)(),
638+
dependencies = {
639+
-- `friendly-snippets` contains a variety of premade snippets.
640+
-- See the README about individual language/framework/plugin snippets:
641+
-- https://github.com/rafamadriz/friendly-snippets
642+
-- {
643+
-- 'rafamadriz/friendly-snippets',
644+
-- config = function()
645+
-- require('luasnip.loaders.from_vscode').lazy_load()
646+
-- end,
647+
-- },
648+
},
638649
},
639650
'saadparwaiz1/cmp_luasnip',
640651

@@ -643,12 +654,6 @@ require('lazy').setup({
643654
-- into multiple repos for maintenance purposes.
644655
'hrsh7th/cmp-nvim-lsp',
645656
'hrsh7th/cmp-path',
646-
647-
-- If you want to add a bunch of pre-configured snippets,
648-
-- you can use this plugin to help you. It even has snippets
649-
-- for various frameworks/libraries/etc. but you will have to
650-
-- set up the ones that are useful for you.
651-
-- 'rafamadriz/friendly-snippets',
652657
},
653658
config = function()
654659
-- See `:help cmp`

0 commit comments

Comments
 (0)