From 2cb2e795375de0e21902c7b945f0a1c4b59f6fff Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Tue, 25 Jun 2024 12:21:34 -0400 Subject: [PATCH] fix(spinner): use global config for show_notification --- lua/hurl/spinner.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/hurl/spinner.lua b/lua/hurl/spinner.lua index 4ad325a..cb5a78f 100644 --- a/lua/hurl/spinner.lua +++ b/lua/hurl/spinner.lua @@ -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. @@ -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