From 707c1757d8e27e34054f3c90d864b6e03634f9ad Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 26 Nov 2024 10:51:57 +0100 Subject: [PATCH] replace copied warning notification with custom message --- lua/kickstart/plugins/telescope.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/kickstart/plugins/telescope.lua b/lua/kickstart/plugins/telescope.lua index a8bec96..a2f8a21 100644 --- a/lua/kickstart/plugins/telescope.lua +++ b/lua/kickstart/plugins/telescope.lua @@ -228,8 +228,12 @@ return { -- scan single selected entry local entry = action_state.get_selected_entry() if entry == nil and #stashes == 0 then - -- reference: https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/actions/init.lua#L589 - utils.__warn_no_selection 'actions.git_apply_stash' + vim.notify( + ---@diagnostic disable-next-line: param-type-mismatch + string.format('WARN [%s]: Nothing currently selected', 'git_drop_stash'), + vim.log.levels.WARN, + { title = 'telescope.nvim' } + ) return end match_bracket(entry.value, stashes)