diff options
Diffstat (limited to '.config/nvim/ftdetect')
| -rw-r--r-- | .config/nvim/ftdetect/texlog.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/ftdetect/texlog.vim b/.config/nvim/ftdetect/texlog.vim new file mode 100644 index 0000000..65928b5 --- /dev/null +++ b/.config/nvim/ftdetect/texlog.vim @@ -0,0 +1,11 @@ +au BufRead *.log call s:FTlog() + +function! s:FTlog() + if exists("g:filetype_log") + exe "setfiletype " . g:filetype_log + elseif getline(1) =~# '^This is \S*TeX[^,]*, Version .\+$' + setfiletype texlog + else + return + endif +endfunction |
