hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

has_provider() is not available in the public API #48

Closed Khyonie closed 3 months ago

Khyonie commented 6 months ago

The "Lua API" section of the documentation says that the function has_provider() is available, but since that function is inside providers/init.lua it isn't. I'm pretty terrible with lua, but my current workaround is doing require("outline.providers").has_outline().

Either add that has_provider() is inside the "providers" module to the documentation or make it accessible in the base "outline" module?

(I'd be happy to submit a quick PR, though I don't trust any lua I write, hahaha)

hedyhli commented 3 months ago

Thanks for bringing it up, I've added it to the outline module.