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.
Requested from: #52
Configuration for each provider can be added to the
config.providers
table, like we already havelsp
. The only difference is that now we will be passing that configuration table to each provider'ssupports_buffer
function for it to handle the behaviour.With the built-in markdown provider, we can add a
filetypes
array and thesupports_buffer
function for markdown can then check this array for extra filetypes to determine whether the markdown provider is supported.