1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:30:04 +08:00

chore(command): add spacevim.command module

This commit is contained in:
wsdjeg 2022-07-03 16:52:15 +08:00
parent f56bcce60f
commit 0dd65c5586
4 changed files with 29 additions and 9 deletions

21
lua/spacevim/command.lua Normal file
View File

@ -0,0 +1,21 @@
--=============================================================================
-- command.lua --- Commands for spacevim
-- Copyright (c) 2016-2022 Wang Shidong & Contributors
-- Author: Wang Shidong < wsdjeg@outlook.com >
-- URL: https://spacevim.org
-- License: GPLv3
--=============================================================================
local M = {}
local command = require('spacevim.api').import('vim.command')
function M.init()
command.defined({
name = 'SPUpdate',
vim_function = 'SpaceVim#plugins#update'
})
end
return M

View File

@ -1,9 +0,0 @@
local M = {}
function M.eval(l)
return vim.api.nvim_eval(l)
end
return M

View File

@ -1,4 +1,12 @@
--=============================================================================
-- opt.lua --- The global option of spacevim
-- Copyright (c) 2016-2022 Wang Shidong & Contributors
-- Author: Wang Shidong < wsdjeg@outlook.com >
-- URL: https://spacevim.org
-- License: GPLv3
--=============================================================================
local M = {}
local sp = require('spacevim')
local mt = {

View File