mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
feat(api): add vim.command
api
This commit is contained in:
parent
0dd65c5586
commit
1756147e0c
14
lua/spacevim/api/vim/command.lua
Normal file
14
lua/spacevim/api/vim/command.lua
Normal file
@ -0,0 +1,14 @@
|
||||
local M = {}
|
||||
|
||||
-- command! -nargs=0 Name call Hello()
|
||||
|
||||
|
||||
function M.create_user_command(name, command, opts)
|
||||
if vim.api ~= nil and vim.api.nvim_create_user_command ~= nil then
|
||||
vim.api.nvim_create_user_command(name, command, opts)
|
||||
else
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return M
|
Loading…
x
Reference in New Issue
Block a user