Skip to content

Commit

Permalink
fix: change unknown action name from error to notification
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jun 11, 2024
1 parent a62ec25 commit e5eb20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/oil/keymap_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local function resolve(rhs)
if type(rhs) == "string" and vim.startswith(rhs, "actions.") then
local action_name = vim.split(rhs, ".", { plain = true })[2]
local action = actions[action_name]
assert(action, "Unknown action name: " .. action_name)
vim.notify(action, "[oil.nvim] Unknown action name: " .. action_name, vim.log.levels.ERROR)
return resolve(action)
elseif type(rhs) == "table" then
local opts = vim.deepcopy(rhs)
Expand Down

0 comments on commit e5eb20e

Please sign in to comment.