aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/filetype.lua
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-12-02 22:07:28 +0100
committerRandy Palamar <randy@rnpnr.xyz>2023-12-02 15:27:48 -0700
commitcbdcdcef213de0d073d987de7fc5a7764dcf5688 (patch)
tree30819a5c45f1afdab95f7befd39072ff1f684a6a /lua/plugins/filetype.lua
parent7d0baa4b446cea1eaa37cb2ff4318b64f37df1ab (diff)
downloadvis-cbdcdcef213de0d073d987de7fc5a7764dcf5688.tar.gz
vis-cbdcdcef213de0d073d987de7fc5a7764dcf5688.tar.xz
Recognize also Python type stub files.
As defined in https://peps.python.org/pep-0484/#stub-files.
Diffstat (limited to 'lua/plugins/filetype.lua')
-rw-r--r--lua/plugins/filetype.lua2
1 files changed, 1 insertions, 1 deletions
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 = {