feat: run/debug profile (#110, #131)#146
Conversation
3fc9616 to
0d87951
Compare
|
Draft because still being worked on? |
|
@s1n7ax I marked the pr as a draft because the tests are missing, and i expect some change requests, so i want to avoid rewriting the tests. |
|
@atm1020 I see, I will review it ASAP |
|
@atm1020 There is one simple change I would like. Fabulous work though. Make sure to post your work in reddit once implemented. |
|
@s1n7ax Thank you for your kind words! I will try to finish in the next few days |
558768c to
f5ac95b
Compare
|
@s1n7ax I think i've finished it.
bug or question :
|
add project specific profile add ui for profile setup pass vm and prog ars to running/debug api
|
@s1n7ax |
|
@atm1020 I think it's better to add the shortcut details below the window. Something like lazygit does. I really couldn't figure out how to save the profile. In the future we can have a |
Good enough for now. Might be possible to add onetime Right now configuration can be accessed using |
|
@atm1020 1st one looks cool. |
add navigation keymaps






Since nvim.nui is already in use, I focused on creating a small UI with it for creating, editing, and changing the active profile.
profile.mp4
Profile settings options:
Profile ui
JavaProfilecommandnew profileoption to create a new one (press enter/space)sin normal mode to save.sin normal mode to save.ain normal mode in a listAll Key binding (in normal mode) :
j: Downk: Upspace: Editenter: Editb: Quit/Backq: Quita: Set Actived: Deleteb: Backq: Quits: SaveThe profile config is saved to a JSON file named
nvim-java-profiles.jsonin the~/.local/share/nvimfolder. Saving to the project folder to the .config.json file or something like that, similar to what IntelliJ does, is still a possible option, but for dev/testing, one config feels more manageable.json structure:
{ "project_folder": { "profile_name1": { "vm_arg": "Vm-arg", "prog_arg": "Prog-arg", "profile_name": "profile_name1" } }