mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:9.1.1019: filetype: fd ignore files are not recognized (#32042)
Problem: filetype: fd ignore files are not recognized
Solution: detect .fdignore files as gitignore filetype
closes: vim/vim#16444
3058087f6f
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -1576,6 +1576,7 @@ local filename = {
|
||||
['.gitignore'] = 'gitignore',
|
||||
['.ignore'] = 'gitignore',
|
||||
['.dockerignore'] = 'gitignore',
|
||||
['.fdignore'] = 'gitignore',
|
||||
['.npmignore'] = 'gitignore',
|
||||
['.rgignore'] = 'gitignore',
|
||||
['.vscodeignore'] = 'gitignore',
|
||||
@@ -2244,6 +2245,7 @@ local pattern = {
|
||||
['^dictd.*%.conf$'] = 'dictdconf',
|
||||
['/lxqt/.*%.conf$'] = 'dosini',
|
||||
['/screengrab/.*%.conf$'] = 'dosini',
|
||||
['/%.config/fd/ignore$'] = 'gitignore',
|
||||
['^${GNUPGHOME}/gpg%.conf$'] = 'gpg',
|
||||
['/boot/grub/grub%.conf$'] = 'grub',
|
||||
['/hypr/.*%.conf$'] = 'hyprlang',
|
||||
|
||||
Reference in New Issue
Block a user