feat: allow setting remote debug via vim global

This commit is contained in:
ftbsc 2023-04-12 18:12:50 +02:00
parent 1a0c649845
commit f7cba63456

View file

@ -71,6 +71,10 @@ vim.api.nvim_create_user_command('Connect',
table.insert(bin_args, "--host")
table.insert(bin_args, args.fargs[1])
end
if vim.g.codemp_remote_debug then
table.insert(bin_args, "--remote-debug")
table.insert(bin_args, vim.g.codemp_remote_debug)
end
if args.bang then
table.insert(bin_args, "--debug")
end