diff --git a/lua/spacevim/command.lua b/lua/spacevim/command.lua new file mode 100644 index 000000000..52294d38e --- /dev/null +++ b/lua/spacevim/command.lua @@ -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 diff --git a/lua/spacevim/neovim.lua b/lua/spacevim/neovim.lua deleted file mode 100644 index 3d7291a6d..000000000 --- a/lua/spacevim/neovim.lua +++ /dev/null @@ -1,9 +0,0 @@ - - -local M = {} - -function M.eval(l) - return vim.api.nvim_eval(l) -end - -return M diff --git a/lua/spacevim/opt.lua b/lua/spacevim/opt.lua index c6d144cb9..c1690a7f0 100644 --- a/lua/spacevim/opt.lua +++ b/lua/spacevim/opt.lua @@ -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 = { diff --git a/lua/spacevim/vim.lua b/lua/spacevim/vim.lua deleted file mode 100644 index e69de29bb..000000000