Skip to content

Commit 93d23b9

Browse files
VlaDexatjdevries
authored andcommitted
Move friendly snippets to dependencies of LuaSnip (nvim-lua#759)
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
1 parent 2644053 commit 93d23b9

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
@@ -643,6 +643,17 @@ require('lazy').setup({
643643
end
644644
return 'make install_jsregexp'
645645
end)(),
646+
dependencies = {
647+
-- `friendly-snippets` contains a variety of premade snippets.
648+
-- See the README about individual language/framework/plugin snippets:
649+
-- https://github.com/rafamadriz/friendly-snippets
650+
-- {
651+
-- 'rafamadriz/friendly-snippets',
652+
-- config = function()
653+
-- require('luasnip.loaders.from_vscode').lazy_load()
654+
-- end,
655+
-- },
656+
},
646657
},
647658
'saadparwaiz1/cmp_luasnip',
648659

@@ -651,12 +662,6 @@ require('lazy').setup({
651662
-- into multiple repos for maintenance purposes.
652663
'hrsh7th/cmp-nvim-lsp',
653664
'hrsh7th/cmp-path',
654-
655-
-- If you want to add a bunch of pre-configured snippets,
656-
-- you can use this plugin to help you. It even has snippets
657-
-- for various frameworks/libraries/etc. but you will have to
658-
-- set up the ones that are useful for you.
659-
-- 'rafamadriz/friendly-snippets',
660665
},
661666
config = function()
662667
-- See `:help cmp`

0 commit comments

Comments
 (0)