From f7cba63456385b89b47c3a126344471008d7e88c Mon Sep 17 00:00:00 2001 From: ftbsc Date: Wed, 12 Apr 2023 18:12:50 +0200 Subject: [PATCH] feat: allow setting remote debug via vim global --- src/client/nvim/codemp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/nvim/codemp.lua b/src/client/nvim/codemp.lua index c265c19..430658f 100644 --- a/src/client/nvim/codemp.lua +++ b/src/client/nvim/codemp.lua @@ -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