mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
New version: created v3
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
local user_settings = astronvim.user_plugin_opts "luasnip"
|
||||
local loader_avail, loader = pcall(require, "luasnip/loaders/from_vscode")
|
||||
if loader_avail then
|
||||
if user_settings.vscode_snippet_paths ~= nil then
|
||||
loader.lazy_load { paths = user_settings.vscode_snippet_paths }
|
||||
end
|
||||
loader.lazy_load()
|
||||
end
|
||||
local luasnip_avail, luasnip = pcall(require, "luasnip")
|
||||
if luasnip_avail then
|
||||
if type(user_settings.filetype_extend) == "table" then
|
||||
for filetype, snippets in pairs(user_settings.filetype_extend) do
|
||||
luasnip.filetype_extend(filetype, snippets)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user