Replies: 1 comment
-
|
They are register by path, in your config create a dir trouble withing your lua dir. lua |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to build a custom source, I found this issue #481 and had a look at how todo-comments.nvim implements it's source. However I am struggling to see how that source is "registered", I can see there is a file that registers a command:
But I do not know enough to know if this is relevant, and what exactly this is doing. I understand there is an command for
Trouble todo...but the above dose not feel like the same thing.Apart from the above I can't find where trouble and todo-comments are intersecting.
I tried adding the config from lua/trouble/sources/todo.lua to my opts for trouble as it looked pretty similar but that did not appear to work. I got an error saying my command was not registered.
If someone could point me to an example or some docs that cover how to do this it would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions