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:
parent
72428d914b
commit
131e5bb364
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue