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:
parent
f56bcce60f
commit
0dd65c5586
21
lua/spacevim/command.lua
Normal file
21
lua/spacevim/command.lua
Normal 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
|
@ -1,9 +0,0 @@
|
||||
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.eval(l)
|
||||
return vim.api.nvim_eval(l)
|
||||
end
|
||||
|
||||
return M
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user