1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 10:40:04 +08:00
SpaceVim/lua/spacevim/api/vim/command.lua

15 lines
272 B
Lua
Raw Normal View History

2022-07-03 17:04:50 +08:00
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