From cbdcdcef213de0d073d987de7fc5a7764dcf5688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Sat, 2 Dec 2023 22:07:28 +0100 Subject: Recognize also Python type stub files. As defined in https://peps.python.org/pep-0484/#stub-files. --- lua/plugins/filetype.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index e8564c5..aa00dc3 100644 --- a/lua/plugins/filetype.lua +++ b/lua/plugins/filetype.lua @@ -351,7 +351,7 @@ vis.ftdetect.filetypes = { }, python = { utility = { "^python%d?" }, - ext = { "%.sc$", "%.py$", "%.pyw$" }, + ext = { "%.sc$", "%.py[iw]?$" }, mime = { "text/x-python", "text/x-script.python" }, }, reason = { -- cgit v1.2.3