Skip to content
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

feat(filetype): support scripts.vim with filetype.lua #17517

Merged
merged 1 commit into from Feb 24, 2022

Conversation

gpanders
Copy link
Member

When filetype.vim is disabled, create the autocommand that runs scripts.vim in filetype.lua.

Closes #16940.

The filetype detection flow now works like this:

  1. filetype.lua is not enabled (default): filetype.vim -> scripts.vim
  2. filetype.lua is enabled, filetype.vim is enabled: filetype.lua -> filetype.vim -> scripts.vim
  3. filetype.lua is enabled, filetype.vim is disabled: filetype.lua -> scripts.vim

When filetype.vim is disabled, create the autocommand that runs
scripts.vim in filetype.lua.
@gpanders gpanders added the filetype filetype detection, filetype.lua label Feb 24, 2022
@github-actions github-actions bot requested a review from clason February 24, 2022 16:34
@gpanders gpanders merged commit fdea157 into neovim:master Feb 24, 2022
@gpanders gpanders deleted the filetype-lua-scripts branch February 24, 2022 17:02
dmitmel pushed a commit to dmitmel/neovim that referenced this pull request Apr 16, 2022
When filetype.vim is disabled, create the autocommand that runs
scripts.vim in filetype.lua.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filetype filetype detection, filetype.lua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filetype.lua does not use scripts.vim
2 participants