1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-22 17:05:42 +08:00

Merge pull request #1240 from SpaceVim/icons

Update icons
This commit is contained in:
Wang Shidong 2018-01-08 05:05:18 -06:00 committed by GitHub
commit 4d363381f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

@ -15,18 +15,18 @@ let s:file_node_extensions = {
\ 'styl' : '', \ 'styl' : '',
\ 'scss' : '', \ 'scss' : '',
\ 'htm' : '', \ 'htm' : '',
\ 'html' : '', \ 'html' : '',
\ 'erb' : '', \ 'erb' : '',
\ 'slim' : '', \ 'slim' : '',
\ 'ejs' : '', \ 'ejs' : '',
\ 'wxml' : '', \ 'wxml' : '',
\ 'css' : '', \ 'css' : '',
\ 'less' : '', \ 'less' : '',
\ 'wxss' : '', \ 'wxss' : '',
\ 'md' : '', \ 'md' : '',
\ 'markdown' : '', \ 'markdown' : '',
\ 'json' : '', \ 'json' : '',
\ 'js' : '', \ 'js' : '',
\ 'jsx' : '', \ 'jsx' : '',
\ 'rb' : '', \ 'rb' : '',
\ 'php' : '', \ 'php' : '',
@ -64,7 +64,7 @@ let s:file_node_extensions = {
\ 'mli' : 'λ', \ 'mli' : 'λ',
\ 'diff' : '', \ 'diff' : '',
\ 'db' : '', \ 'db' : '',
\ 'sql' : '', \ 'sql' : '',
\ 'dump' : '', \ 'dump' : '',
\ 'clj' : '', \ 'clj' : '',
\ 'cljc' : '', \ 'cljc' : '',
@ -95,6 +95,7 @@ let s:file_node_extensions = {
\ 'psd' : '', \ 'psd' : '',
\ 'psb' : '', \ 'psb' : '',
\ 'ts' : '', \ 'ts' : '',
\ 'tsx' : '',
\ 'jl' : '' \ 'jl' : ''
\} \}

View File

@ -48,7 +48,7 @@ function! s:tabname(id) abort
if g:spacevim_enable_tabline_filetype_icon if g:spacevim_enable_tabline_filetype_icon
let icon = s:file.fticon(fn) let icon = s:file.fticon(fn)
if !empty(icon) if !empty(icon)
let fn = icon . ' ' . fn let fn = fn . ' ' . icon
endif endif
endif endif
if empty(fn) if empty(fn)
@ -109,7 +109,7 @@ function! SpaceVim#layers#core#tabline#get() abort
if g:spacevim_enable_tabline_filetype_icon if g:spacevim_enable_tabline_filetype_icon
let icon = s:file.fticon(name) let icon = s:file.fticon(name)
if !empty(icon) if !empty(icon)
let name = icon . ' ' . name let name = name . ' ' . icon
endif endif
endif endif
let t .= id . ' ' . name let t .= id . ' ' . name
@ -174,7 +174,7 @@ function! SpaceVim#layers#core#tabline#get() abort
if g:spacevim_enable_tabline_filetype_icon if g:spacevim_enable_tabline_filetype_icon
let icon = s:file.fticon(name) let icon = s:file.fticon(name)
if !empty(icon) if !empty(icon)
let name = icon . ' ' . name let name = name . ' ' . icon
endif endif
endif endif
let t .= id . ' ' . name let t .= id . ' ' . name