I made a plugin, is my lazy config wrong or the plugin itself? #1826
Unanswered
JulianNymark
asked this question in
Q&A
Replies: 2 comments 5 replies
-
remove |
Beta Was this translation helpful? Give feedback.
1 reply
-
Settings opts = {} implies the config(), so you're technically calling config twice in the code you provided. Check out the docs https://lazy.folke.io/spec#spec-setup. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I made this plugin: https://github.com/JulianNymark/telescope_grouped_keymaps.nvim,
and the way I (try to) load it is like this:
However it seems like it doesn't actually run after the two plugins in the dependencies list have "finished" loading (I'm not sure what the right terminology is here). But however if i run the setup manually at a later time, the plugin seems to work fine, so I'm thinking that the plugin itself is fine, and that this is a config issue?
when I run:
Everything works as inteded 😅 .
After some research I tried to debug this loading issue with
Lazy profile
as well, but it "looks fine" to me 🤔 (granted I don't quite know what i'm looking at as a complete newbie, I'm guessing they load from top to bottom, and that if something is nested, it comes "after" the nested deps have run their respective.setup()
s? (this is merely speculation from my side though).I would have liked to see my plugin at a line under telescope, similarly to how in the screenshot below
telescope-file-browser
comes under it in the list, it also the identical plugin"nvim-telescope/telescope.nvim"
in its dependencies list.Beta Was this translation helpful? Give feedback.
All reactions