Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invalid filetype in /etc/nginx #34056

Copy link
Copy link
Open
Open
Copy link
@thedevscave

Description

@thedevscave
Issue body actions

Problem

Hello! I noticed that filetype deduction is working incorrectly in /etc/nginx - we always get filetype=nginx

Steps to reproduce

  1. nvim --clean /etc/nginx/main.py
  2. :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

No one assigned

    Labels

    bug-vimwrong behavior inherited from vimwrong behavior inherited from vimfiletypefiletype detection, filetype.lua, ftpluginsfiletype detection, filetype.lua, ftpluginsneeds:vim-patchupstream issue that must be fixed in Vim firstupstream issue that must be fixed in Vim first

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.