Open
Description
Problem
Hello! I noticed that filetype deduction is working incorrectly in /etc/nginx
- we always get filetype=nginx
Steps to reproduce
nvim --clean /etc/nginx/main.py
:echo &filetype
Expected behavior
It'll print nginx
as a result. But obviously the .py
file must have the python
filetype. You can put any extension you want in the first step (i.e. /etc/nginx/main.cpp
will work as well), the result will be the same
Nvim version (nvim -v)
NVIM v0.11.1 (Build type: RelWithDebInfo, LuaJIT 2.1.1741730670)
Vim (not Nvim) behaves the same?
yes, vim 9.1.1376
Operating system/version
arch linux 6.14.6-arch1-1
Terminal name/version
kitty 0.42.0-1
$TERM environment variable
xterm-kitty
Installation
system package manager
Metadata
Metadata
Assignees
Labels
wrong behavior inherited from vimwrong behavior inherited from vimfiletype detection, filetype.lua, ftpluginsfiletype detection, filetype.lua, ftpluginsupstream issue that must be fixed in Vim firstupstream issue that must be fixed in Vim first