-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
README: improve autocmd
instructions
#1082
base: master
Are you sure you want to change the base?
Conversation
I was just about to supply a PR with this change, good I found that you'd already done it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this and it works well, and is the more Lua way of doing it in nvim.
Even more lua:
|
Nice, looks even better. |
It's not working for me:
|
So something like this:
I actually prefer to see a message when the command is executed. Also,
|
First, you can use
source
without arguments to source the current buffer. As for Lua, it is better to use actual Lua code than calling Vim from Lua.