parent
715274c3f9
commit
cd2884abf1
@ -214,6 +214,7 @@ function! airline#extensions#load()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if get(g:, 'airline#extensions#bookmark#enabled', 1)
|
if get(g:, 'airline#extensions#bookmark#enabled', 1)
|
||||||
|
\ && exists(':BookmarkToggle')
|
||||||
call airline#extensions#bookmark#init(s:ext)
|
call airline#extensions#bookmark#init(s:ext)
|
||||||
call add(s:loaded_ext, 'bookmark')
|
call add(s:loaded_ext, 'bookmark')
|
||||||
endif
|
endif
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
"
|
"
|
||||||
" MIT License. Copyright (c) 2019 Bjoern Petri <bjoern.petri@sundevil.de>
|
" MIT License. Copyright (c) 2019 Bjoern Petri <bjoern.petri@sundevil.de>
|
||||||
"
|
"
|
||||||
|
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
|
if !exists(':BookmarkToggle')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
function! airline#extensions#bookmark#currentbookmark()
|
function! airline#extensions#bookmark#currentbookmark()
|
||||||
if get(w:, 'airline_active', 0)
|
if get(w:, 'airline_active', 0)
|
||||||
let file = expand("%:p")
|
let file = expand("%:p")
|
||||||
|
Loading…
Reference in New Issue
Block a user