mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 10:40:04 +08:00
15 lines
272 B
Lua
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
|