move friendly snippets to dependencies of LuaSnip, as suggested by the docs

This commit is contained in:
Vladislav 2024-03-14 05:07:40 +01:00
parent 27f6f13769
commit a6c04ac8dd
No known key found for this signature in database
GPG Key ID: 07A1CCBD643CA257
1 changed files with 7 additions and 6 deletions

View File

@ -656,6 +656,13 @@ require('lazy').setup({
end end
return 'make install_jsregexp' return 'make install_jsregexp'
end)(), end)(),
dependencies = {
-- If you want to add a bunch of pre-configured snippets,
-- you can use this plugin to help you. It even has snippets
-- for various frameworks/libraries/etc. but you will have to
-- set up the ones that are useful for you.
'rafamadriz/friendly-snippets',
},
config = function() config = function()
require('luasnip.loaders.from_vscode').lazy_load() require('luasnip.loaders.from_vscode').lazy_load()
end, end,
@ -667,12 +674,6 @@ require('lazy').setup({
-- into multiple repos for maintenance purposes. -- into multiple repos for maintenance purposes.
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-path', 'hrsh7th/cmp-path',
-- If you want to add a bunch of pre-configured snippets,
-- you can use this plugin to help you. It even has snippets
-- for various frameworks/libraries/etc. but you will have to
-- set up the ones that are useful for you.
'rafamadriz/friendly-snippets',
}, },
config = function() config = function()
-- See `:help cmp` -- See `:help cmp`