diff --git a/lua/spacevim/api/vim/command.lua b/lua/spacevim/api/vim/command.lua new file mode 100644 index 000000000..142ed6476 --- /dev/null +++ b/lua/spacevim/api/vim/command.lua @@ -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