diff options
| author | Matěj Cepl <mcepl@cepl.eu> | 2023-12-02 22:07:28 +0100 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2023-12-02 15:27:48 -0700 |
| commit | cbdcdcef213de0d073d987de7fc5a7764dcf5688 (patch) | |
| tree | 30819a5c45f1afdab95f7befd39072ff1f684a6a /lua | |
| parent | 7d0baa4b446cea1eaa37cb2ff4318b64f37df1ab (diff) | |
| download | vis-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')
| -rw-r--r-- | lua/plugins/filetype.lua | 2 |
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 = { |
