Closed ghost closed 1 year ago
Hi,
Thank you for the plugin. I will try it.
Could you give an example of how to add custom matchers by calling custom lua function.
If I see correctly there are two builtin matchers and for all else schema needs to be selected manualy via Telesope plugin.
BR,
The API is subject to change, as of right now all you have to do is call require("yaml-companion").load_matcher("X") where X is a module that has the match and handles functions, example here. You can check here the code that loads the matchers.
require("yaml-companion").load_matcher("X")
match
handles
Hi,
Thank you for the plugin. I will try it.
Could you give an example of how to add custom matchers by calling custom lua function.
If I see correctly there are two builtin matchers and for all else schema needs to be selected manualy via Telesope plugin.
BR,