1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 17:49:57 +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 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 . ' '

View File

@ -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:

View File

@ -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'

View File

@ -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]]