-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] set dap.defaults options #1509
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Generally speaking, I think we normally do pre/post setup code by calling setup manually. Plugins implemented with
I don't think we ever call a DAP nixvim/plugins/dap/default.nix Lines 86 to 99 in 40598fc
Maybe someone more familiar with our DAP module could help better here.
I'm not sure what you mean by this, since the plugin settings table is what is passed to the setup function. As for options unknown to nixvim, these are included in the table passed to |
The chances of me implementing this myself dropped since I'm more fine interspersing lua code throughout my nixvim config. |
If you think others may find it useful, you're welcome to leave it open and "unsubscribe" if you're not interested in notificatione. Otherwise if you think it has no value, closing is fine. |
nvim-dap has a remarkable amount of configuration options behind the
require('dap').defaults
. See:h dap.defaults
for a subset and more of them in:h dap-configuration
.I'd like to set those options through nixvim.
what does not work
In a normal neovim setting, those should be set after calling
setup()
. Which I think is the reason for why the following does not work in my nix configuration:workaround
I now work around this with
proposed interface
I think it would be nice if defaults could be set with
since that's closest to the lua interface. Stuff like
seems less intuitive to me.
a probably bad idea for generalization
Maybe, you'd even want to generalize by always making it so that in nixvim, options that aren't accepted by the
setup
are then attempted to be added to the plugin's table.So this
does something like (forgive the python)
though, this is not my main issue. If the above code makes you go "what the bleep are you talking about?" then feel free to just ignore it (and politely don't tell me what word the "bleep" masked out).
offered help
I would at some point make a pull requiest if no one did this but "at some point" is probably >2 months in the future.
If you'd like to wait for my pull request, I'd appreciate (but I do not feel entitled to) a pointer on how post-setup lua code tends to be run for plugins that have setup for that.
Or, if you'd never want this functionality for the dap plugin, then that'd also be nice to know (I think I'd disagree, but respectfully so) and I'll just keep using my workaround.
The text was updated successfully, but these errors were encountered: