1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
SpaceVim/lua/spacevim/api.lua
2022-09-25 19:12:46 +08:00

22 lines
541 B
Lua

--=============================================================================
-- api.lua --- lua api plugin
-- Copyright (c) 2016-2019 Wang Shidong & Contributors
-- Author: Wang Shidong < wsdjeg@outlook.com >
-- URL: https://spacevim.org
-- License: GPLv3
--=============================================================================
local M = {}
-- local logger = require('spacevim.logger')
function M.import(name)
local ok, rst = pcall(require, 'spacevim.api.' .. name)
if ok then
return rst
end
end
return M