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

Per-provider configuration #58

Closed hedyhli closed 5 months ago

hedyhli commented 5 months ago

Requested from: #52

Configuration for each provider can be added to the config.providers table, like we already have lsp. The only difference is that now we will be passing that configuration table to each provider's supports_buffer function for it to handle the behaviour.

With the built-in markdown provider, we can add a filetypes array and the supports_buffer function for markdown can then check this array for extra filetypes to determine whether the markdown provider is supported.