mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:9.0.0424: gitattributes files are not recognized (#20134)
Problem: gitattributes files are not recognized.
Solution: Add patterns to match gitattributes files. (closes vim/vim#11085)
7d56cfc861
This commit is contained in:
@@ -1383,6 +1383,7 @@ local filename = {
|
||||
['EDIT_DESCRIPTION'] = 'gitcommit',
|
||||
['.gitconfig'] = 'gitconfig',
|
||||
['.gitmodules'] = 'gitconfig',
|
||||
['.gitattributes'] = 'gitattributes',
|
||||
['gitolite.conf'] = 'gitolite',
|
||||
['git-rebase-todo'] = 'gitrebase',
|
||||
gkrellmrc = 'gkrellmrc',
|
||||
@@ -1825,6 +1826,14 @@ local pattern = {
|
||||
return 'gitconfig'
|
||||
end
|
||||
end,
|
||||
['.*%.git/info/attributes'] = 'gitattributes',
|
||||
['.*/etc/gitattributes'] = 'gitattributes',
|
||||
['.*/%.config/git/attributes'] = 'gitattributes',
|
||||
['.*/git/attributes'] = function(path, bufnr)
|
||||
if vim.env.XDG_CONFIG_HOME and path:find(vim.env.XDG_CONFIG_HOME .. '/git/attributes') then
|
||||
return 'gitattributes'
|
||||
end
|
||||
end,
|
||||
['%.gitsendemail%.msg%.......'] = 'gitsendemail',
|
||||
['gkrellmrc_.'] = 'gkrellmrc',
|
||||
['.*/usr/.*/gnupg/options%.skel'] = 'gpg',
|
||||
|
||||
Reference in New Issue
Block a user