Allow only user specified dap_configurations as options #103

Closed
opened 2024-11-12 23:44:17 +03:00 by angles-n-daemons · 7 comments
angles-n-daemons commented 2024-11-12 23:44:17 +03:00 (Migrated from github.com)

Hi there,

First off, thanks for the library. It's been really helpful as a developer who enjoys using vim.

Chiming in today to say that I find all of the common_debug_configs a bit cumbersome. Not only because they all show up as options when debugging, but also because they appear higher in the list than user specified configurations.

Are you open to the idea of hiding the common options? Something to the effect of a configuration value hide_default_configs or something, or even show_common_configs which defaults to true? I'm happy to take a crack at it if it's something you think could be useful.

Hi there, First off, thanks for the library. It's been really helpful as a developer who enjoys using vim. Chiming in today to say that I find all of the `common_debug_configs` a bit cumbersome. Not only because they all show up as options when debugging, but also because they appear higher in the list than user specified configurations. Are you open to the idea of hiding the common options? Something to the effect of a configuration value `hide_default_configs` or something, or even `show_common_configs` which defaults to true? I'm happy to take a crack at it if it's something you think could be useful.
angles-n-daemons commented 2024-11-12 23:45:01 +03:00 (Migrated from github.com)

Current:
image

Current: <img width="638" alt="image" src="https://github.com/user-attachments/assets/e10198c3-644a-4287-8618-2579071cc121">
angles-n-daemons commented 2024-11-12 23:46:59 +03:00 (Migrated from github.com)

Desired:
image

Desired: <img width="638" alt="image" src="https://github.com/user-attachments/assets/136a9c4f-dde9-4b55-a23a-286d95704108">
dennypenta commented 2024-11-26 23:24:19 +03:00 (Migrated from github.com)

you can override it

        dap.configurations.go = {}
you can override it ```lua dap.configurations.go = {} ```
angles-n-daemons commented 2025-02-19 23:44:47 +03:00 (Migrated from github.com)

I suppose if I use a launch.json file, it's not exactly straightforward how to patch my options into the prompt.

I suppose if I use a `launch.json` file, it's not exactly straightforward how to patch my options into the prompt.
angles-n-daemons commented 2025-02-19 23:46:23 +03:00 (Migrated from github.com)

For example, in my nvim-dap-go configuration I have the following:

      require('dap-go').setup {}
      require('dap').configurations.go = {}

Where the default options are still inserted in.

For example, in my `nvim-dap-go` configuration I have the following: ``` require('dap-go').setup {} require('dap').configurations.go = {} ``` Where the default options are still inserted in.
dennypenta commented 2025-02-20 11:03:26 +03:00 (Migrated from github.com)

Have a look at my config, it has no such issue
dennypenta/home@00ffcf5bf4/.config/nvim/lua/plugins/dap.lua (L209)

Have a look at my config, it has no such issue https://github.com/dennypenta/home/blob/00ffcf5bf471afcdbf7dcaec19ef49c06b9afff6/.config/nvim/lua/plugins/dap.lua#L209
stale[bot] commented 2025-08-19 16:02:04 +03:00 (Migrated from github.com)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
NeonXP/nvim-dap-go#103
No description provided.