From 4e52032439963248fceaeee9452a7fbbbf854ce4 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 2 May 2021 15:55:22 +0900 Subject: [PATCH] Add 'foldmethod=manual' on fern buffer Close #331 --- autoload/fern/internal/viewer.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fern/internal/viewer.vim b/autoload/fern/internal/viewer.vim index 1445d45..b9ed964 100644 --- a/autoload/fern/internal/viewer.vim +++ b/autoload/fern/internal/viewer.vim @@ -48,6 +48,9 @@ function! s:init() abort setlocal buftype=nofile bufhidden=unload setlocal noswapfile nobuflisted nomodifiable setlocal signcolumn=yes + " The 'foldmethod=manual' is required to avoid the following issue + " https://github.com/lambdalisue/fern.vim/issues/331 + setlocal foldmethod=manual augroup fern_internal_viewer_init autocmd! *