ref(Layer): `utils.notify_error` for unmapping errors

pull/17/head
Iron-E 2 years ago
parent f61d56f221
commit 5c66d7622a
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -159,11 +159,7 @@ function Layer:unmap(buffer, mode, lhs)
end)
if not (no_errors or err:match 'E31: No such mapping') then
vim.notify(
'nvim-libmodal encountered error while unmapping from layer: ' .. err,
vim.log.levels.ERROR,
{title = 'nvim-libmodal'}
)
require('libmodal/src/utils').notify_error('nvim-libmodal encountered an error while unmapping from layer', err)
return
end
end

Loading…
Cancel
Save