1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:50:05 +08:00

Glyph free theme (#1784)

* Add Glyph-free theme
This commit is contained in:
Wang Shidong 2018-06-03 20:14:17 +08:00 committed by GitHub
parent 92aa47e3dc
commit 36d138771b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 15 deletions

View File

@ -139,9 +139,13 @@ function! s:major_mode() abort
endfunction
function! s:modes() abort
let m = ' ❖ '
if g:spacevim_statusline_unicode_symbols
let m = ' ❖ '
else
let m = ' # '
endif
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 . ' '
else
let m .= s:modes[mode].icon_asc . ' '

View File

@ -62,12 +62,17 @@ if !exists('g:startify_custom_header')
endif
call SpaceVim#mapping#space#def('nnoremap', ['a','s'], 'Startify | doautocmd WinEnter', 'fancy start screen',1)
function! FileIcon(path)
let icon = s:FILE.fticon(a:path)
return empty(icon) ? ' ' : icon
endfunction
if g:spacevim_enable_tabline_filetype_icon
function! FileIcon(path)
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:

View File

@ -15,17 +15,18 @@
background = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
guicolors = false
enable_guicolors = false
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "nil"
statusline_inactive_separator = "bar"
buffer_index_type = 4
windows_index_type = 3
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
vimcompatible = 1
vimcompatible = true
# Enable autocomplete layer
[[layers]]
name = 'autocomplete'

View File

@ -15,14 +15,14 @@
background = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
guicolors = true
enable_guicolors = true
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "arrow"
statusline_inactive_separator = "arrow"
buffer_index_type = 4
enable_tabline_filetype_icon = true
statusline_display_mode = false
enable_statusline_display_mode = false
# Enable autocomplete layer
[[layers]]