feat(providers): Support independent configs for each provider to handle

Closes #58
This commit is contained in:
hedy
2024-03-16 08:12:50 +08:00
parent 8c6b11e4c2
commit b64c0c66d4
7 changed files with 39 additions and 6 deletions

View File

@@ -18,7 +18,9 @@ local M = {
]],
}
function M.supports_buffer(bufnr)
---@param bufnr integer
---@param config table?
function M.supports_buffer(bufnr, config)
if vim.api.nvim_buf_get_option(bufnr, 'ft') ~= 'norg' then
return false
end