Open FredeEB opened 2 years ago
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?
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 ofcommand
but couldn't find a lua variant of source, and doing it withvim.cmd
would yield the same result as using command