From 5aacff03453e505ee6e5181e3247676239570dbc Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 1 Mar 2024 18:05:15 +0530 Subject: plugins/lsp: init --- lua/plugins/opts/misc.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lua/plugins/opts/misc.lua') diff --git a/lua/plugins/opts/misc.lua b/lua/plugins/opts/misc.lua index 952dc4f..e228023 100644 --- a/lua/plugins/opts/misc.lua +++ b/lua/plugins/opts/misc.lua @@ -16,4 +16,15 @@ M.gitsigns = { end, } +M.luasnip = function (opts) + require("luasnip").config.set_config(opts) + + -- vscode format + require("luasnip.loaders.from_vscode").lazy_load() + -- snipmate format + require("luasnip.loaders.from_snipmate").lazy_load() + -- lua format + require("luasnip.loaders.from_lua").lazy_load() +end + return M -- cgit v1.2.3