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

Add lua api (#2861)

This commit is contained in:
Wang Shidong 2020-09-19 22:57:11 +08:00 committed by GitHub
parent 0b81705043
commit ab5a7b3a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions

View File

@ -2,7 +2,7 @@ local api = {}
function api.import(name)
return require('spacevim.api.' .. name)
end

View File

@ -1 +1,20 @@
local str = {}
function str.trim(str)
return str:match( "^%s*(.-)%s*$" )
end
function str.fill(str, length, ...)
if string.len(str) > length then
end
end
return str
-- @todo add lua string api

View File

@ -0,0 +1,6 @@
local flygrep = {}
function flygrep.open(opt)
end