-
Notifications
You must be signed in to change notification settings - Fork 73
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
keymap.set in on_attach function is always called when buffer entered #166
Comments
Hmmm...perhaps this is a wording issue in the documentation. The I may make it easier to change bindings in the aerial window in the future. |
I see. Thank you. |
@stevearc I have disabled all plugins but aerial. And set below codes. vim.api.nvim_create_autocmd('FileType', {
callback = function(args)
if (args.match == 'aerial') then print('====', vim.loop.now()) end
end,
}) I find that the print time is triggered when aerial window opened and cursor moved out aerial window. |
Not strictly a bug, since the work it's doing should be idempotent, but unnecessary. I've pushed up a change that should prevent the duplicate calls. Also, you can now set aerial-buffer keymaps in the call to |
Describe the bug
Set buffer keymap in on_attach function will affect all buffers.
To Reproduce
Screenshots
What to be expected
Only call
on_attach
after aerial window opened.Set buffer keymap in on_attach function will only affect aerial buffer.
The text was updated successfully, but these errors were encountered: