Skip to content

Commit

Permalink
fix!: deprecate configuring plugin via telescope extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Mar 26, 2024
1 parent 309cbf2 commit a7ee814
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lua/telescope/_extensions/bookmarks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,15 @@ end

return telescope.register_extension {
setup = function(ext_config)
browser_bookmarks.setup(ext_config)
if ext_config and not vim.tbl_isempty(ext_config) then
utils.warn(
"Configuring the plugin using the telescope extension is deprecated."
.. "Please use the `setup` function from the main module:\n\n"
.. ("require('browser_bookmarks').setup(%s)"):format(
vim.inspect(ext_config)
)
)
end
end,
exports = {
bookmarks = bookmarks,
Expand Down

0 comments on commit a7ee814

Please sign in to comment.