mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 04:41:46 +00:00
replace copied warning notification with custom message
This commit is contained in:
parent
a1ca7a6d77
commit
707c1757d8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user