-
Notifications
You must be signed in to change notification settings - Fork 949
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
bug: autocmds loaded to late if file opened directly vim README.md
#34
Labels
bug
Something isn't working
Comments
You did not provide a minimal |
@folke sry i forgot about that, here the init.lua i used:
|
I'm sorry, I thought you posted this in the |
thank you for the fix, and in general for your amazing work around neovim |
ofrades
pushed a commit
to ofrades/LazyVim
that referenced
this issue
May 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev
Operating system/version
Ubuntu 18.04
Describe the bug
While opening a file directly on the command line the autocmds eg. for markdown files are loaded after the file is loaded so they are not "executed". In the case of markdown file the specific settings are not applied(speell/wrap). If the file is opened over the Dashboard the autocmds are "executed" and spell/wrap is set.
Refreshing the file over
:e
"executes" the autocmds.Steps To Reproduce
open file directly via
vim README.md
check settings for wrap/spell eg
echo &spell
close
open vim to be on the dashboard
open the file over
f
keymapcheck settings for wrap/spell
Expected Behavior
autocmds are loaded before the file so that they can be "executed"
Repro
The text was updated successfully, but these errors were encountered: