1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:10:07 +08:00

Add option to enable showing full path (#2393)

This commit is contained in:
Wang Shidong 2018-12-30 00:03:47 -06:00 committed by GitHub
parent 44a8acad93
commit bc59abdaea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 4 deletions

View File

@ -327,6 +327,10 @@ let g:spacevim_enable_cursorline = 1
let g:spacevim_statusline_separator = 'arrow' let g:spacevim_statusline_separator = 'arrow'
let g:spacevim_statusline_inactive_separator = 'arrow' let g:spacevim_statusline_inactive_separator = 'arrow'
""
" Enable/Disable showing full path of current buffer on statusline
let g:spacevim_enable_statusline_bfpath = 0
"" ""
" Define the left section of statusline in active windows. By default: " Define the left section of statusline in active windows. By default:
" > " >

View File

@ -286,8 +286,10 @@ function! s:check_mode() abort
endfunction endfunction
" only when there are more than two buffers have same name. " only when there are more than two buffers have same name.
" show buffer name all the time need
" enable_statusline_bfpath true
function! s:buffer_name() abort function! s:buffer_name() abort
if get(b:, '_spacevim_statusline_showbfname', 0) == 1 if get(b:, '_spacevim_statusline_showbfname', 0) == 1 || g:spacevim_enable_statusline_bfpath
return ' ' . bufname('%') return ' ' . bufname('%')
else else
return '' return ''

View File

@ -5,10 +5,12 @@ codecov:
branch: master branch: master
coverage: coverage:
status: status:
patch:
default: false
project: project:
default: false # disable the default status that measures entire project default: false # disable the default status that measures entire project
tests: # declare a new status context "tests" api: # declare a new status context "api"
target: 100% # we always want 100% coverage here target: 70% # we always want 100% coverage here
paths: "tests/" # only include coverage in "tests/" folder paths: "autoload/SpaceVim/api/" # only include coverage in "tests/" folder
app: # declare a new status context "app" app: # declare a new status context "app"
paths: "!tests/" # remove all files in "tests/" paths: "!tests/" # remove all files in "tests/"

View File

@ -415,6 +415,9 @@ Set the statusline separators of statusline, default is 'arrow'
See more details in: http://spacevim.org/documentation/#statusline See more details in: http://spacevim.org/documentation/#statusline
*g:spacevim_enable_statusline_bfpath*
Enable/Disable showing full path of current buffer on statusline
*g:spacevim_statusline_left_sections* *g:spacevim_statusline_left_sections*
Define the left section of statusline in active windows. By default: Define the left section of statusline in active windows. By default:
> >