-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default to normal <c-a> #78
Comments
Sorry, I don't understand, please elaborate a bit more. |
not default i guess. What I meant was "fallback". So fallback to and make it behave like vanilla vim if dial.nvim doesn't do anyhing. Do you understand the example I gave in the original post? |
dial.nvim supports all the features provided built-in vim.keymap.set("n", "<C-a>", function()
if require("dial.inspect").manipulatable() then
-- use dial.nvim's <C-a>
return "<Plug>(dial-increment)"
else
-- fallback to built-in
return "<C-a>"
end
end, { expr = true }) |
@monaqa That would actually be quite nice to have. I believe I found myself in similar situation as reported by OP. |
Sorry @gegoune, but I can't reproduce what OP said, could you provide the reproduction steps? For me, it just works as expected when opening |
For simple case such |
I love this plugin but this missing (and easy to implement feature) has really been bugging me.
If I open up a new file
a.txt
:I can increment the 1 normally with
<c-a>
. However, that doesn't work with dial because dial doesn't have any groups associated with a random text file.How can I configure dial to default to the builtin mapping if dial doesn't do anything? Should this be a default?
Thanks for the awesome plugin.
The text was updated successfully, but these errors were encountered: