1
0
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:
wsdjeg 2022-07-03 17:04:50 +08:00
parent 0dd65c5586
commit 1756147e0c

View 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