mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
parent
92aa47e3dc
commit
36d138771b
@ -139,9 +139,13 @@ function! s:major_mode() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:modes() abort
|
function! s:modes() abort
|
||||||
let m = ' ❖ '
|
if g:spacevim_statusline_unicode_symbols
|
||||||
|
let m = ' ❖ '
|
||||||
|
else
|
||||||
|
let m = ' # '
|
||||||
|
endif
|
||||||
for mode in s:loaded_modes
|
for mode in s:loaded_modes
|
||||||
if g:spacevim_statusline_unicode_symbols == 1
|
if g:spacevim_statusline_unicode_symbols
|
||||||
let m .= s:modes[mode].icon . ' '
|
let m .= s:modes[mode].icon . ' '
|
||||||
else
|
else
|
||||||
let m .= s:modes[mode].icon_asc . ' '
|
let m .= s:modes[mode].icon_asc . ' '
|
||||||
|
@ -62,12 +62,17 @@ if !exists('g:startify_custom_header')
|
|||||||
endif
|
endif
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['a','s'], 'Startify | doautocmd WinEnter', 'fancy start screen',1)
|
call SpaceVim#mapping#space#def('nnoremap', ['a','s'], 'Startify | doautocmd WinEnter', 'fancy start screen',1)
|
||||||
|
|
||||||
function! FileIcon(path)
|
if g:spacevim_enable_tabline_filetype_icon
|
||||||
let icon = s:FILE.fticon(a:path)
|
|
||||||
return empty(icon) ? ' ' : icon
|
function! FileIcon(path)
|
||||||
endfunction
|
let icon = s:FILE.fticon(a:path)
|
||||||
|
return empty(icon) ? ' ' : icon
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! StartifyEntryFormat()
|
||||||
|
return 'FileIcon(entry_path) ." ". entry_path'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
function! StartifyEntryFormat()
|
|
||||||
return 'FileIcon(entry_path) ." ". entry_path'
|
|
||||||
endfunction
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -15,17 +15,18 @@
|
|||||||
background = "dark"
|
background = "dark"
|
||||||
# Disable guicolors in basic mode, many terminal do not support 24bit
|
# Disable guicolors in basic mode, many terminal do not support 24bit
|
||||||
# true colors
|
# true colors
|
||||||
guicolors = false
|
enable_guicolors = false
|
||||||
# Disable statusline separator, if you want to use other value, please
|
# Disable statusline separator, if you want to use other value, please
|
||||||
# install nerd fonts
|
# install nerd fonts
|
||||||
statusline_separator = "nil"
|
statusline_separator = "nil"
|
||||||
statusline_inactive_separator = "bar"
|
statusline_inactive_separator = "bar"
|
||||||
buffer_index_type = 4
|
buffer_index_type = 4
|
||||||
|
windows_index_type = 3
|
||||||
enable_tabline_filetype_icon = false
|
enable_tabline_filetype_icon = false
|
||||||
statusline_display_mode = false
|
enable_statusline_display_mode = false
|
||||||
|
statusline_unicode_symbols = false
|
||||||
# Enable vim compatible mode, avoid changing origin vim key bindings
|
# Enable vim compatible mode, avoid changing origin vim key bindings
|
||||||
vimcompatible = 1
|
vimcompatible = true
|
||||||
|
|
||||||
# Enable autocomplete layer
|
# Enable autocomplete layer
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = 'autocomplete'
|
name = 'autocomplete'
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
background = "dark"
|
background = "dark"
|
||||||
# Disable guicolors in basic mode, many terminal do not support 24bit
|
# Disable guicolors in basic mode, many terminal do not support 24bit
|
||||||
# true colors
|
# true colors
|
||||||
guicolors = true
|
enable_guicolors = true
|
||||||
# Disable statusline separator, if you want to use other value, please
|
# Disable statusline separator, if you want to use other value, please
|
||||||
# install nerd fonts
|
# install nerd fonts
|
||||||
statusline_separator = "arrow"
|
statusline_separator = "arrow"
|
||||||
statusline_inactive_separator = "arrow"
|
statusline_inactive_separator = "arrow"
|
||||||
buffer_index_type = 4
|
buffer_index_type = 4
|
||||||
enable_tabline_filetype_icon = true
|
enable_tabline_filetype_icon = true
|
||||||
statusline_display_mode = false
|
enable_statusline_display_mode = false
|
||||||
|
|
||||||
# Enable autocomplete layer
|
# Enable autocomplete layer
|
||||||
[[layers]]
|
[[layers]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user