mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 01:18:34 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user