Skip to content
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

Added note about nvim 0.7.0 lua autocmds #895

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FredeEB
Copy link

@FredeEB FredeEB commented Apr 29, 2022

neovim introduced native lua autocmds, so I though they'd be worth a mention.

I was considering adding an example with the callback field instead of command but couldn't find a lua variant of source, and doing it with vim.cmd would yield the same result as using command

@yehorb
Copy link

yehorb commented Apr 29, 2022

Consider creating augroup with { clear = true } before creating the autocmd. This will ensure that plugin reload autocmmand will be cleared before creation with each source. Duplicating autocommands can lead to unexpected results.

@FredeEB
Copy link
Author

FredeEB commented Apr 29, 2022

@yehorb - TIL! Thanks. I updated the PR

@FredeEB
Copy link
Author

FredeEB commented Jul 13, 2022

@yehorb - any further comments on this?

@yehorb
Copy link

yehorb commented Jul 13, 2022

@yehorb - any further comments on this?

Hi. Looks good to me. Thank you for updating the PR.

@FredeEB
Copy link
Author

FredeEB commented Jul 13, 2022

@yehorb - Thanks! 👍

@FredeEB
Copy link
Author

FredeEB commented Oct 10, 2022

@wbthomason - Sorry for pinging you, but I cannot add any reviewers to this PR, but maybe you could give it a read?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants