mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
9 lines
227 B
Lua
9 lines
227 B
Lua
vim.api.nvim_create_user_command('Nvim', function(opt)
|
|
local cmd = { 'nvim-qt', '--' }
|
|
for _, v in pairs(opt.fargs) do
|
|
table.insert(cmd, v)
|
|
end
|
|
|
|
vim.fn.jobstart(cmd)
|
|
end, { nargs = '*', complete = 'file' })
|