nvim-dap-profiles :( Apparently there is a way to do the same thing using launch.json built into dap, much better than my solution.
-> lsp/servers. utils now has a function for "get_file_names_in_dir"