mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 09:44:07 +00:00
vim-patch:9.1.1212: filetype: logrotate'd pacmanlogs are not recognized (#33412)
Problem: filetype: logrotate'd pacmanlogs are not recognized
Solution: also detect pacman.log* files as pacmanlog filetype,
remove BufNewFile autocmd (Eisuke Kawashima)
closes: vim/vim#16873
20d23ce93b
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
@@ -1730,7 +1730,6 @@ local filename = {
|
||||
['.ondirrc'] = 'ondir',
|
||||
opam = 'opam',
|
||||
['opam.locked'] = 'opam',
|
||||
['pacman.log'] = 'pacmanlog',
|
||||
['/etc/pam.conf'] = 'pamconf',
|
||||
['pam_env.conf'] = 'pamenv',
|
||||
['.pam_environment'] = 'pamenv',
|
||||
@@ -2480,6 +2479,9 @@ local pattern = {
|
||||
['/octave/history$'] = 'octave',
|
||||
['%.opam%.locked$'] = 'opam',
|
||||
['%.opam%.template$'] = 'opam',
|
||||
['^pacman%.log'] = starsetf(function(path, bufnr)
|
||||
return vim.uv.fs_stat(path) and 'pacmanlog' or nil
|
||||
end),
|
||||
['printcap'] = starsetf(function(path, bufnr)
|
||||
return require('vim.filetype.detect').printcap('print')
|
||||
end),
|
||||
|
||||
Reference in New Issue
Block a user