mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-13 05:53:50 -05:00
Add support for .gitignore highlighting
This commit is contained in:
@@ -2023,6 +2023,10 @@ if !has_key(s:disabled_packages, 'tads')
|
||||
au! BufNewFile,BufRead *.t call polyglot#DetectTFiletype()
|
||||
endif
|
||||
|
||||
if !has_key(s:disabled_packages, 'gitignore')
|
||||
au BufNewFile,BufRead {.,}gitignore set ft=gitignore
|
||||
endif
|
||||
|
||||
|
||||
|
||||
au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat |
|
||||
|
||||
Reference in New Issue
Block a user