vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 1eb87c395cb29effc5dca1995b5ad01f4624c5cf parent fa72725dff802bec0cd1db5546fdaac7be3781b8 Author: Matěj Cepl <mcepl@cepl.eu> Date: Sat, 2 Dec 2023 22:07:28 +0100 Recognize also Python type stub files. As defined in https://peps.python.org/pep-0484/#stub-files. Diffstat:
| M | lua/plugins/filetype.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 = {