Skip to content

Commit

Permalink
fix(spinner): use global config for show_notification (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffis authored Jun 25, 2024
1 parent d5cce0b commit e54b5a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/hurl/spinner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ local M = {}

-- User configuration section
local config = {
-- Show notification when done.
-- Set to false to disable.
show_notification = true,
-- Name of the plugin.
plugin = 'hurl.nvim',
-- Spinner frames.
Expand Down Expand Up @@ -84,7 +81,7 @@ function M.hide(show_msg)
vim.api.nvim_buf_delete(spinner_buf, { force = true })
end

if config.show_notification or show_msg then
if show_msg or _HURL_GLOBAL_CONFIG.show_notification then
vim.notify('Done!', vim.log.levels.INFO, { title = config.plugin })
end
end
Expand Down

0 comments on commit e54b5a4

Please sign in to comment.