summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>2024-03-15 15:35:42 +0100
committerGitHub <noreply@github.com>2024-03-15 10:35:42 -0400
commit2f494e59cae64a2d62dc2377ab317a963fa2e5d5 (patch)
tree9c3b692cfa1dcea30c053d6644b706109155aeae /init.lua
parent452e3a73cfc87995c58f8d46effa370da4fd1131 (diff)
Move friendly snippets to dependencies of LuaSnip (#759)
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua17
1 files changed, 11 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index 26774a5..552e16a 100644
--- a/init.lua
+++ b/init.lua
@@ -635,6 +635,17 @@ require('lazy').setup({
end
return 'make install_jsregexp'
end)(),
+ dependencies = {
+ -- `friendly-snippets` contains a variety of premade snippets.
+ -- See the README about individual language/framework/plugin snippets:
+ -- https://github.com/rafamadriz/friendly-snippets
+ -- {
+ -- 'rafamadriz/friendly-snippets',
+ -- config = function()
+ -- require('luasnip.loaders.from_vscode').lazy_load()
+ -- end,
+ -- },
+ },
},
'saadparwaiz1/cmp_luasnip',
@@ -643,12 +654,6 @@ require('lazy').setup({
-- into multiple repos for maintenance purposes.
'hrsh7th/cmp-nvim-lsp',
'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()
-- See `:help cmp`