packer.nvim
packer.nvim copied to clipboard
Added note about nvim 0.7.0 lua autocmds
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
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.
@yehorb - TIL! Thanks. I updated the PR
@yehorb - any further comments on this?
@yehorb - any further comments on this?
Hi. Looks good to me. Thank you for updating the PR.
@yehorb - Thanks! 👍
@wbthomason - Sorry for pinging you, but I cannot add any reviewers to this PR, but maybe you could give it a read?