From 6e3e0bf029ae670bbbdf4cdd938ad4b7eecbb6ed Mon Sep 17 00:00:00 2001 From: siduck76 Date: Thu, 28 Oct 2021 06:04:50 +0530 Subject: [PATCH] fix luasnip incorrect path (#526) --- lua/plugins/configs/others.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 5e36288..2235130 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -82,7 +82,9 @@ M.luasnip = function() history = true, updateevents = "TextChanged,TextChangedI", } - require("luasnip/loaders/from_vscode").load { path = { chadrc_config.plugins.options.luasnip.snippet_path } } + + require("luasnip/loaders/from_vscode").load { paths = chadrc_config.plugins.options.luasnip.snippet_path } + require("luasnip/loaders/from_vscode").load() end M.signature = function()