1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/lua/spacevim/api/vim/command.lua
2022-07-03 17:04:50 +08:00

15 lines
272 B
Lua

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