This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Conditional Registration of Custom Source #455
Answered
by
jose-elias-alvarez
christoph-blessing
asked this question in
Q&A
-
Is it currently possible to conditionally register custom sources or is that only supported for builtin sources? I would be very grateful if anyone could show me how to do it if it is possible. :) |
Beta Was this translation helpful? Give feedback.
Answered by
jose-elias-alvarez
Dec 16, 2021
Replies: 1 comment 2 replies
-
Yes, you can dynamically register any source (custom or built-in) by using |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
christoph-blessing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can dynamically register any source (custom or built-in) by using
null_ls.register
, described here. You can use an autocommand, custom function, or whatever else you want and everything should work as expected.