1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

style(lua): add file head

This commit is contained in:
wsdjeg 2022-01-04 23:15:17 +08:00
parent 129d538c3b
commit 524ae813ad
3 changed files with 30 additions and 10 deletions

View File

@ -1,7 +1,15 @@
local api = {}
function api.import(name)
--=============================================================================
-- 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 = {}
function M.import(name)
return require('spacevim.api.' .. name)
end
return api
return M

View File

@ -1,9 +1,12 @@
local fn = nil
if vim.fn == nil then
fn = require('spacevim').fn
else
fn = vim.fn
end
--=============================================================================
-- logger.lua --- logger api implemented in lua
-- Copyright (c) 2016-2019 Wang Shidong & Contributors
-- Author: Wang Shidong < wsdjeg@outlook.com >
-- URL: https://spacevim.org
-- License: GPLv3
--=============================================================================
local fn = vim.fn or require('spacevim').fn
local cmd = require('spacevim').cmd

View File

@ -1,3 +1,12 @@
--=============================================================================
-- logger.lua --- logger implemented in lua
-- 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.api').import('logger')