rspec.vim icon indicating copy to clipboard operation
rspec.vim copied to clipboard

File type not detected

Open AntoniMarcinek opened this issue 3 years ago • 0 comments

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.

AntoniMarcinek avatar May 26 '21 10:05 AntoniMarcinek