Skip to content

Conversation

@FredeHoey
Copy link

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.

@FredeHoey
Copy link
Author

@yehorb - TIL! Thanks. I updated the PR

@FredeHoey
Copy link
Author

@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.

@FredeHoey
Copy link
Author

@yehorb - Thanks! 👍

@FredeHoey
Copy link
Author

@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.

3 participants