nvim: after/plugin/snipcomp: Lazy load LuaSnip

LuaSnip needs to be lazy loaded now else it slows down the startup.
This commit is contained in:
Sanchayan Maity 2022-03-14 13:23:24 +05:30
parent 72428d914b
commit 131e5bb364
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ vim.luasnip = {}
-- https://github.com/hrsh7th/nvim-cmp/issues/180#issuecomment-915405589
require'luasnip'.config.set_config { history = true }
require('luasnip.loaders.from_vscode').load {}
require('luasnip.loaders.from_vscode').lazy_load {}
local function snippet2completion(snippet)
return {