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:
parent
0b81705043
commit
ab5a7b3a82
@ -2,7 +2,7 @@ local api = {}
|
||||
|
||||
|
||||
function api.import(name)
|
||||
|
||||
return require('spacevim.api.' .. name)
|
||||
end
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
6
lua/spacevim/plugin/flygrep.lua
Normal file
6
lua/spacevim/plugin/flygrep.lua
Normal file
@ -0,0 +1,6 @@
|
||||
local flygrep = {}
|
||||
|
||||
|
||||
function flygrep.open(opt)
|
||||
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user