diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-06-21 10:29:44 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-06-21 11:17:33 +0200 |
commit | d82efeccc7e89230ba6673da0fdf62c09fa38c17 (patch) | |
tree | 49d46803d6b9b2c98834f33bd2b391a3bb4264e5 /runtime/lua/vim | |
parent | 5eb604c64214957dc777e77cf1cc8d19dd8d8369 (diff) | |
download | rneovim-d82efeccc7e89230ba6673da0fdf62c09fa38c17.tar.gz rneovim-d82efeccc7e89230ba6673da0fdf62c09fa38c17.tar.bz2 rneovim-d82efeccc7e89230ba6673da0fdf62c09fa38c17.zip |
vim-patch:9.1.0506: filetype: .envrc & .prettierignore not recognized
Problem: filetype: .envrc & .prettierignore not recognized
Solution: Detect '.envrc' as shell and '.prettierignore' as gitignore
filetype (Tyler Miller)
Support ft detection for `.envrc` files used by direnv, and
`.prettierignore` files used by prettier.
closes: vim/vim#15053
resolves: neovim/neovim#29405
https://github.com/vim/vim/commit/49012cd8c2fb0452847e5d213b07aa8a978f4762
Co-authored-by: Tyler Miller <tmillr@proton.me>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 7373c403b5..6dd920e506 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -469,6 +469,7 @@ local extension = { gmi = 'gemtext', gemini = 'gemtext', gift = 'gift', + prettierignore = 'gitignore', gleam = 'gleam', glsl = 'glsl', gn = 'gn', @@ -953,6 +954,7 @@ local extension = { ebuild = detect.bash, eclass = detect.bash, env = detect.sh, + envrc = detect.sh, ksh = detect.ksh, sh = detect.sh, mdd = 'sh', |