fix: fix the notification level to use a titlecased string

This commit is contained in:
hankertrix 2025-02-17 02:19:49 +08:00
parent f25ef0f07b
commit ee6fb17d33
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
local state = ya.sync(function() return cx.active.current.cwd end) local state = ya.sync(function() return cx.active.current.cwd end)
local function fail(s, ...) ya.notify { title = "Fzf", content = string.format(s, ...), timeout = 5, level = "error" } end local function fail(s, ...) ya.notify { title = "Fzf", content = string.format(s, ...), timeout = 5, level = "Error" } end
local function entry() local function entry()
local _permit = ya.hide() local _permit = ya.hide()

View file

@ -7,7 +7,7 @@ end)
local set_state = ya.sync(function(st, empty) st.empty = empty end) local set_state = ya.sync(function(st, empty) st.empty = empty end)
local function fail(s, ...) ya.notify { title = "Zoxide", content = s:format(...), timeout = 5, level = "error" } end local function fail(s, ...) ya.notify { title = "Zoxide", content = s:format(...), timeout = 5, level = "Error" } end
local function options() local function options()
-- https://github.com/ajeetdsouza/zoxide/blob/main/src/cmd/query.rs#L92 -- https://github.com/ajeetdsouza/zoxide/blob/main/src/cmd/query.rs#L92