rspec.vim
rspec.vim copied to clipboard
File type not detected
With ftdetect
in after
the spec files get ruby
as the file type and the syntax is not loaded for me. I am using Vim 8.1 and the plugin is in the $HOME/.vim/pack
directory.
If I move just the ftdetect
to the root directory of the plugin - syntax
stays in after
- everything seems to work fine.
Looks like that MR #36 introduced a regression. Maybe @sheerun, as the author of #36 has an idea if it is indeed necessary from his point of view to have both ftdetect
and syntax
in after
or is it only syntax
which needs to be there.
I don't know what is the sequence with ftdetect
directories, but for filetype.vim definitions in after
are meant as fallbacks, so if there is an earlier match (in this case ruby, coming from /usr/share/vim/vim81/filetype.vim
), then things in after
are ignored.