-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix: rust dap installation #1196
fix: rust dap installation #1196
Conversation
53eb6e9
to
5c35604
Compare
Strange, with the current rust extra it got installed just fine for me also on a clean installation (that I keep aside for testing purposes). How does making |
Not sure how the sequence of loading is build, but I found a similar setup in the
codelldb . Also when configured this way I expect it to not install the dap adapter if the whole dap-module is not installed…
|
I can understand the latter, you wanting it to be installed only when |
One important differences between both versions is this line
So maybe depending on the startup sequence |
@appelgriebsch probably because you don't import specs in the correct order? Order should always be:
|
Hmm actually have it in the same order, and can really say that on a clean machine codelldb is not installed automatically: https://github.com/appelgriebsch/Nv/blob/main/lua/config/lazy.lua#L54 |
This is not how lazy.nvim operates currently. Even without nvim-dap, its dependencies (ie mason) will still apply, and Given the original code, your opts.ensure-installed is not a table when entering the function. That's really strange because lsp.lua in stock LazyVim does create a table. I had a peek at your dotfiles and noticed a "deep-extend" in your config/lazy.lua. Would it be possible that during the extend the list of your dependencies changes order? |
Thank you for clarifying this. I was under the impression that since Edit: I saw the most recent version of |
Interpreting lazy.nvim's documentation, I think it does not state what should happen to a plugin's dependencies in case the plugin is marked as optional. |
Hello @appelgriebsch, After loading all extras, your top-level mason-config overwrites ensure-installed.
This could be the fix:
LazyVim's examples mention this situation in the treesitter configuration:
|
on a clean system
codelldb
was not installed automatically when importing therust.lua
extension. this PR provides a fix