mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 12:51:45 +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
|
-- scan single selected entry
|
||||||
local entry = action_state.get_selected_entry()
|
local entry = action_state.get_selected_entry()
|
||||||
if entry == nil and #stashes == 0 then
|
if entry == nil and #stashes == 0 then
|
||||||
-- reference: https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/actions/init.lua#L589
|
vim.notify(
|
||||||
utils.__warn_no_selection 'actions.git_apply_stash'
|
---@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
|
return
|
||||||
end
|
end
|
||||||
match_bracket(entry.value, stashes)
|
match_bracket(entry.value, stashes)
|
||||||
|
Loading…
Reference in New Issue
Block a user