mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Add option to enable showing full path (#2393)
This commit is contained in:
parent
44a8acad93
commit
bc59abdaea
@ -327,6 +327,10 @@ let g:spacevim_enable_cursorline = 1
|
||||
let g:spacevim_statusline_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:
|
||||
" >
|
||||
|
@ -286,8 +286,10 @@ function! s:check_mode() abort
|
||||
endfunction
|
||||
|
||||
" 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
|
||||
if get(b:, '_spacevim_statusline_showbfname', 0) == 1
|
||||
if get(b:, '_spacevim_statusline_showbfname', 0) == 1 || g:spacevim_enable_statusline_bfpath
|
||||
return ' ' . bufname('%')
|
||||
else
|
||||
return ''
|
||||
|
@ -5,10 +5,12 @@ codecov:
|
||||
branch: master
|
||||
coverage:
|
||||
status:
|
||||
patch:
|
||||
default: false
|
||||
project:
|
||||
default: false # disable the default status that measures entire project
|
||||
tests: # declare a new status context "tests"
|
||||
target: 100% # we always want 100% coverage here
|
||||
paths: "tests/" # only include coverage in "tests/" folder
|
||||
api: # declare a new status context "api"
|
||||
target: 70% # we always want 100% coverage here
|
||||
paths: "autoload/SpaceVim/api/" # only include coverage in "tests/" folder
|
||||
app: # declare a new status context "app"
|
||||
paths: "!tests/" # remove all files in "tests/"
|
||||
|
@ -415,6 +415,9 @@ Set the statusline separators of statusline, default is 'arrow'
|
||||
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*
|
||||
Define the left section of statusline in active windows. By default:
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user