mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tutor: don't set statusline (#8844)
also, remove unused function tutor#InfoText() fixes #8842
This commit is contained in:
parent
2841e89cf1
commit
a5e3f4da34
@ -77,15 +77,6 @@ function! tutor#TutorFolds()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! tutor#InfoText()
|
|
||||||
let l:info_parts = []
|
|
||||||
if exists('b:tutor_infofunc')
|
|
||||||
call add(l:info_parts, eval(b:tutor_infofunc.'()'))
|
|
||||||
endif
|
|
||||||
return join(l:info_parts, " ")
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
|
|
||||||
" Marks: {{{1
|
" Marks: {{{1
|
||||||
|
|
||||||
function! tutor#ApplyMarks()
|
function! tutor#ApplyMarks()
|
||||||
|
@ -25,9 +25,6 @@ setlocal foldmethod=manual
|
|||||||
setlocal foldexpr=tutor#TutorFolds()
|
setlocal foldexpr=tutor#TutorFolds()
|
||||||
setlocal foldlevel=4
|
setlocal foldlevel=4
|
||||||
|
|
||||||
setlocal statusline=%{toupper(expand('%:t:r'))}\ tutorial%=
|
|
||||||
setlocal statusline+=%{tutor#InfoText()}
|
|
||||||
|
|
||||||
" Load metadata if it exists: {{{1
|
" Load metadata if it exists: {{{1
|
||||||
if filereadable(expand('%').'.json')
|
if filereadable(expand('%').'.json')
|
||||||
call tutor#LoadMetadata()
|
call tutor#LoadMetadata()
|
||||||
|
Loading…
Reference in New Issue
Block a user