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

49012cd8c2

Co-authored-by: Tyler Miller <tmillr@proton.me>
This commit is contained in:
Christian Clason
2024-06-21 10:29:44 +02:00
parent 5eb604c642
commit d82efeccc7
2 changed files with 4 additions and 2 deletions

View File

@@ -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',