We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SessionLoadPost
1 parent e041e18 commit d551ad6Copy full SHA for d551ad6
plugin/fern.vim
@@ -25,8 +25,19 @@ function! s:BufReadCmd() abort
25
\.catch({ e -> fern#logger#error(e) })
26
endfunction
27
28
+function! s:SessionLoadPost() abort
29
+ let bufnr = bufnr()
30
+ call s:BufReadCmd()
31
+ " Re-apply required window options
32
+ for winid in win_findbuf(bufnr)
33
+ let [tabnr, winnr] = win_id2tabwin(winid)
34
+ call settabwinvar(tabnr, winnr, '&concealcursor', 'nvic')
35
+ call settabwinvar(tabnr, winnr, '&conceallevel', 2)
36
+ endfor
37
+endfunction
38
+
39
augroup fern_internal
40
autocmd! *
41
autocmd BufReadCmd fern://* nested call s:BufReadCmd()
- autocmd SessionLoadPost fern://* nested call s:BufReadCmd()
42
+ autocmd SessionLoadPost fern://* nested call s:SessionLoadPost()
43
augroup END
0 commit comments