From ad8c1c80cc4b45c67e9d75622af6e1383c52d2e4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 26 Aug 2021 01:27:42 -0400 Subject: [PATCH] Work around hostile ftplugin/man.vim References: https://github.com/neovim/neovim/issues/15487 --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f4a0f99..452793e 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2961,6 +2961,9 @@ function! s:TempReadPost(file) abort call fugitive#MapJumps() endif if has_key(dict, 'filetype') + if dict.filetype ==# 'man' && has('nvim') + let b:man_sect = matchstr(getline(1), '^\w\+(\zs\d\+\ze)') + endif let &l:filetype = dict.filetype endif setlocal foldmarker=<<<<<<<<,>>>>>>>>