Coder Social home page Coder Social logo

defx-icons's Introduction

Defx icons

Custom implementation of vim-devicons for defx.nvim.

screenshot from 2018-11-22 23-39-41

Usage

:Defx -columns=icons:indent:filename:type

This column is a replacement for mark column. It will properly highlight selected files.

Configuration

This is the default configuration:

let g:defx_icons_enable_syntax_highlight = 1
let g:defx_icons_column_length = 1
let g:defx_icons_directory_icon = ''
let g:defx_icons_mark_icon = '*'
let g:defx_icons_copy_icon = ''
let g:defx_icons_link_icon = ''
let g:defx_icons_move_icon = ''
let g:defx_icons_parent_icon = ''
let g:defx_icons_default_icon = ''
let g:defx_icons_directory_symlink_icon = ''
" Options below are applicable only when using "tree" feature
let g:defx_icons_root_opened_tree_icon = ''
let g:defx_icons_nested_opened_tree_icon = ''
let g:defx_icons_nested_closed_tree_icon = ''

Note: Syntax highlighting can cause some performance issues in defx window. Just disable it with the let g:defx_icons_enable_syntax_highlight = 0

Override colors

If you want to override some of the colors, you can do it this way:

For gui:

let g:defx_icons_gui_colors = {
\ 'red': 'FFFFFF'
\ }

For term:

let g:defx_icons_term_colors = {
\ 'red': 2
\ }

For directory icons these highlight groups are defined:

hi default link DefxIconsMarkIcon Statement
hi default link DefxIconsCopyIcon WarningMsg
hi default link DefxIconsLinkIcon WarningMsg
hi default link DefxIconsMoveIcon ErrorMsg
hi default link DefxIconsDirectory Directory
hi default link DefxIconsParentDirectory Directory
hi default link DefxIconsSymlinkDirectory Directory
hi default link DefxIconsOpenedTreeIcon Directory
hi default link DefxIconsNestedTreeIcon Directory
hi default link DefxIconsClosedTreeIcon Directory

For example, to change color of the directory icon when it's opened in tree to red color, you would do something like this:

hi DefxIconsOpenedTreeIcon guifg=#FF0000

Or link it to something else that you want:

hi link DefxIconsOpenedTreeIcon Error

Thanks to

defx-icons's People

Contributors

freed-wu avatar get-me-power avatar glepnir avatar kjssad avatar kristijanhusak avatar matsui54 avatar phcerdan avatar raa0121 avatar rafi avatar skipadu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

defx-icons's Issues

Padding column

Is it possible to get a column before the icons?

This would be make it similar to the Denite implementation and avoid display problems with cursor.

Change icons color

Hi,

Is it possible to change the icons colors? In particular, I would like to change the directory/folder one.

Thanks,
A

Get Error: Property type DefxIconsParentDirectory already defined

Hi @kristijanhusak , I'm using Vim. When I trigger mapping l for defx, vim echom below messages:

[defx] Vim(call):E474: Invalid argument
[defx] Vim(call):E969: Property type DefxIconsParentDirectory already defined
No matching autocommands

mapping l is set to: nnoremap <silent><buffer><expr> l defx#do_action('open')

my defx-icons setting is:

Plug 'kristijanhusak/defx-icons'

let g:defx_icons_root_opened_tree_icon = ''
let g:defx_icons_nested_opened_tree_icon = ''
let g:defx_icons_nested_closed_tree_icon = ''
let g:defx_icons_directory_icon = ''
let g:defx_icons_parent_icon = ''

some defx setting is:

Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }

silent! call defx#custom#option('_', {
      \ 'winwidth': 25,
      \ 'split': 'vertical',
      \ 'direction': 'topleft',
      \ 'show_ignored_files': 0,
      \ 'buffer_name': 'defxplorer',
      \ 'columns': 'indent:icons:filename',
      \ 'toggle': 1,
      \ 'resume': 1,
      \ 'listed': 1,
      \ 'root_marker': '≡ '
      \ })

Any hints? Thanks in advance!

W18: Invalid character in group name

I'm trying your plugin and I'm getting lots of this when running :Defx -columns=icons:filename:type:

Error detected while processing function defx#util#call_defx[2]..defx#start[8]..defx#util#rpcrequest[11].._defx_start[1]..remote#define#request:
line    2:
W18: Invalid character in group name
W18: Invalid character in group name
W18: Invalid character in group name
W18: Invalid character in group name
.
.
.

Despite that, defx still opens up with the folder and file icons fine.

Plugin causes some digits in file names to get strange colors

Having the plugin is strangely affecting how colorschemes behave for numbers in file names:

screenshot

See for example, digits 1 and 2 are much brighter than others. This happens with vim-deep-space colorscheme. Here's a minimal configuration I used in my tests:

" VIM-PLUG {{{
" Automatic Download {{{
if empty(glob('~/.vim/autoload/plug.vim'))
  silent !mkdir -p "$HOME/.vim/autoload"
  silent !curl -fLo "$HOME/.vim/autoload/plug.vim" 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
endif
" }}}
" PlugRemotePlugins(info) {{{
if has('nvim')
  let s:remote_plugins_updated = 0
  function! PlugRemotePlugins(info) abort
    if !s:remote_plugins_updated
      let s:remote_plugins_updated = 1
      UpdateRemotePlugins
    endif
  endfunction
else
  function! PlugRemotePlugins(info) abort
  endfunction
endif
" }}}
call plug#begin('~/.vim/plugged')
Plug 'tyrannicaltoucan/vim-deep-space'
Plug 'kristijanhusak/defx-icons', {'do': function('PlugRemotePlugins')}
Plug 'Shougo/defx.nvim', {'do': function('PlugRemotePlugins')}
call plug#end()
" }}}

let mapleader = ' '
if has('termguicolors')
  let &t_8f = "\<esc>[38;2;%lu;%lu;%lum"
  let &t_8b = "\<esc>[48;2;%lu;%lu;%lum"
  set termguicolors
endif
silent! colors deep-space
nnoremap <silent> <leader>D :Defx -split=vertical -winwidth=50 -direction=topleft -columns=indent:icons:filename:type<cr>
autocmd FileType defx call s:defx_mappings()
function! s:defx_mappings() abort
  nnoremap <silent><buffer><expr> za defx#do_action('open_or_close_tree')
endfunction

Tested on NVIM v0.4.0-808-g62d5137c8.

How to not show icon at row of root?

image

Hi @kristijanhusak , as I post above. There is a and a speace before , and I think it will be better if it disapper.

As if not show the following part of root line could shift left, then doc, plugin, test, etc is the subdirectories of root from indent. But for now they are in same indent.

Is there a way to make it? Thanks!

custom file icons

does defx-icons extends devicons ? does it support custom file icons?
I config

let g:WebDevIconsUnicodeDecorateFileNodesPatternSymbols['xml'] = ''

this config doesn't affect display of defx-icons.

the custom color is not applied in neovim

Hi @kristijanhusak , Thanks your greatful plugins.

Unfortunately, my custom icon color setting is not working in neovim.

I wrote .vimrc and init.vim as below.

let g:defx_icons_extensions = {}
let g:defx_icons_extensions['md'] = {'icon': '', 'color': '#0000FF', 'term_color':  67 } "bule
let g:defx_icons_extensions['py'] = {'icon': '', 'color': '#F09F17', 'term_color': 229 } "yellow

in vim.

vim

in neovim.

nvim

The default color is applied to test.pyc, but custom one is not.(README.md and test.py)
Please tell me what I made a mistake.

Invalid icon displayed in defx

When I open defx windown, the file icons were replaced to question mark. The terminal I use is iterm.

Screen Shot 2019-05-07 at 19 01 49

Besides, when display readme.md file in this link. It's unable to display(Check below pic). Not sure whether this is an OS level issue or other issue. Can some help on this issue? Thanks in advance.

Screen Shot 2019-05-07 at 19 04 59

highlight not working

When I enable hightlight in vimrc, and enable defx, it happened:
g:defx_icons_enable_syntax_highlight

Error invoking '_defx_start' on channel 5 (python3-rplugin-host):
error caught in request handler '_defx_start [[['/Users/cocobear/'], {'columns': 'git:ident:icons:filename:type', 'auto_cd': 0, 'prev_bufnr': 1, 'root_marker': '\ufb0c ', 'resume': 1, 'auto_recursive_level'
: 0, 'sort': 'filename', 'listed': 0, 'new': 0, 'ignored_files': '.*', 'direction': 'topleft', 'visual_end': 0, 'winheight': 30, 'profile': 0, 'search': '/Users/cocobear/abc', 'buffer_name': 'default', 'win
width': 35, 'split': 'vertical', 'visual_start': 0, 'cursor': 1, 'winrelative': 'editor', 'prev_winid': 1000, 'wincol': 51, 'winrow': 16, 'session_file': '', 'show_ignored_files': 1, 'drives': [], 'toggle':
1}]]':
Traceback (most recent call last):
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/init.py", line 36, in start
self._rplugin.start(args)
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/rplugin.py", line 32, in start
views[0].init(paths, context, self._clipboard)
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/view.py", line 51, in init
if not self._init_defx(paths, clipboard):
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/view.py", line 382, in _init_defx
self.redraw(True)
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/view.py", line 141, in redraw
self._init_column_syntax()
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/view.py", line 538, in _init_column_syntax
source_highlights = column.highlight_commands()
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/column/icons.py", line 121, in highlight_commands
commands += self.syn_list('exact_matches')
File "/Users/cocobear/.config/nvim/bundle/.cache/init.vim/.dein/rplugin/python3/defx/column/icons.py", line 101, in syn_list
self.syntax_name, text, opts['color'], opts.get('term_color',
KeyError: 'color'

I try to print opts var :

        with open('/Users/cocobear/vimlog','a') as f:
            f.write(str(self.opts))
            f.write('\n\n')

it is :

{'extensions': {'erl': {'term_color': 103, 'icon': '\ue7b1', 'color': '834F79'}, 'styl': {'term_color': 65, 'icon': '\ue600', 'color': '8FAA54'}, 'rmd': {'term_color': 231, 'icon': '\ue609', 'color': 'FFFFFF'}, 'pyc': {'term_color': 229, 'icon': '\ue606', 'color': 'F09F17'}, 'pyd': {'term_color': 229, 'icon': '\ue606', 'color': 'F09F17'}, 'go': {'term_color': 137, 'icon': '\ue627', 'color': 'F5C06F'}, 'suo': {'term_color': 60, 'icon': '\ue70c', 'color': '834F79'}, 'lua': {'term_color': 60, 'icon': '\ue620', 'color': '834F79'}, 'bash': {'term_color': 231, 'icon': '\ue795', 'color': 'FFFFFF'}, 'pyo': {'term_color': 229, 'icon': '\ue606', 'color': 'F09F17'}, 'mustache': {'term_color': 208, 'icon': '\ue60f', 'color': 'D4843E'}, 'gif': {'term_color': 66, 'icon': '\ue60d', 'color': '3AFFDB'}, 'diff': {'term_color': 231, 'icon': '\ue728', 'color': 'FFFFFF'}, 'fs': {'term_color': 67, 'icon': '\ue7a7', 'color': '689FB6'}, 'java': {'term_color': 60, 'icon': '\ue738', 'color': '834F79'}, 'lhs': {'term_color': 137, 'icon': '\ue61f', 'color': 'F5C06F'}, 'scala': {'term_color': 131, 'icon': '\ue737', 'color': 'AE403F'}, 'zsh': {'term_color': 231, 'icon': '\ue795', 'color': 'FFFFFF'}, 'jpeg': {'term_color': 66, 'icon': '\ue60d', 'color': '3AFFDB'}, 'ts': {'term_color': 67, 'icon': '\ue628', 'color': '689FB6'}, 'fsi': {'term_color': 67, 'icon': '\ue7a7', 'color': '689FB6'}, 'vim': {'term_color': 65, 'icon': '\ue62b', 'color': '8FAA54'}, 'scss': {'term_color': 205, 'icon': '\ue603', 'color': 'CB6F6F'}, 'js': {'term_color': 137, 'icon': '\ue60c', 'color': 'F5C06F'}, 'gitcommit': {'icon': '\uf113'}, 'xul': {'term_color': 166, 'icon': '\ue745', 'color': 'F16529'}, 'R': {'icon': 'ﳒ'}, 'fish': {'term_color': 65, 'icon': '\ue795', 'color': '8FAA54'}, 'htm': {'term_color': 166, 'icon': '\ue60e', 'color': 'F16529'}, 'rb': {'term_color': 131, 'icon': '\ue791', 'color': 'AE403F'}, 'c': {'term_color': 67, 'icon': '\ue61e', 'color': '689FB6'}, 'd': {'term_color': 131, 'icon': '\ue7af', 'color': 'AE403F'}, 'md': {'term_color': 229, 'icon': '\ue609', 'color': 'F09F17'}, 'h': {'term_color': 231, 'icon': '\uf0fd', 'color': 'FFFFFF'}, 'mli': {'term_color': 229, 'icon': 'λ', 'color': 'F09F17'}, 'ml': {'term_color': 229, 'icon': 'λ', 'color': 'F09F17'}, 'css': {'term_color': 67, 'icon': '\ue614', 'color': '689FB6'}, 'jpg': {'term_color': 66, 'icon': '\ue60d', 'color': '3AFFDB'}, 'cc': {'term_color': 67, 'icon': '\ue61d', 'color': '689FB6'}, 't': {'term_color': 67, 'icon': '\ue769', 'color': '689FB6'}, 'jl': {'term_color': 60, 'icon': '\ue624', 'color': '834F79'}, 'cljc': {'term_color': 65, 'icon': '\ue768', 'color': '8FAA54'}, 'ksh': {'term_color': 231, 'icon': '\ue795', 'color': 'FFFFFF'}, 'hs': {'term_color': 137, 'icon': '\ue61f', 'color': 'F5C06F'}, 'sql': {'term_color': 57, 'icon': '\ue706', 'color': '44788E'}, 'tsx': {'term_color': 231, 'icon': '\ue7ba', 'color': 'FFFFFF'}, 'cp': {'term_color': 67, 'icon': '\ue61d', 'color': '689FB6'}, 'ps1': {'term_color': 231, 'icon': '\ue795', 'color': 'FFFFFF'}, 'bmp': {'term_color': 66, 'icon': '\ue60d', 'color': '3AFFDB'}, 'sln': {'term_color': 60, 'icon': '\ue70c', 'color': '834F79'}, 'cljs': {'term_color': 65, 'icon': '\ue76a', 'color': '8FAA54'}, 'html': {'term_color': 166, 'icon': '\ue60e', 'color': 'F16529'}, 'cpp': {'term_color': 67, 'icon': '\ue61d', 'color': '689FB6'}, 'hrl': {'term_color': 205, 'icon': '\ue7b1', 'color': 'CB6F6F'}, 'rs': {'term_color': 166, 'icon': '\ue7a8', 'color': 'F16529'}, 'sass': {'term_color': 231, 'icon': '\ue603', 'color': 'FFFFFF'}, 'vue': {'term_color': 65, 'icon': '\ufd42', 'color': '8FAA54'}, 'rlib': {'term_color': 166, 'icon': '\ue7a8', 'color': 'F16529'}, 'awk': {'term_color': 231, 'icon': '\ue795', 'color': 'FFFFFF'}, 'conf': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'pl': {'term_color': 67, 'icon': '\ue769', 'color': '689FB6'}, 'pm': {'term_color': 67, 'icon': '\ue769', 'color': '689FB6'}, 'hbs': {'term_color': 208, 'icon': '\ue60f', 'color': 'D4843E'}, 'pp': {'term_color': 231, 'icon': '\uf499', 'color': 'FFFFFF'}, 'tex': {'icon': '\uf18d'}, 'py': {'term_color': 229, 'icon': '\ue606', 'color': 'F09F17'}, 'fsscript': {'term_color': 67, 'icon': '\ue7a7', 'color': '689FB6'}, 'less': {'term_color': 57, 'icon': '\ue614', 'color': '44788E'}, 'r': {'icon': 'ﳒ'}, 'ai': {'term_color': 166, 'icon': '\ue7b4', 'color': 'F16529'}, 'jsx': {'term_color': 67, 'icon': '\ue7ba', 'color': '689FB6'}, 'csh': {'term_color': 231, 'icon': '\ue795', 'color': 'FFFFFF'}, 'psd': {'term_color': 57, 'icon': '\ue7b8', 'color': '44788E'}, 'psb': {'term_color': 57, 'icon': '\ue7b8', 'color': '44788E'}, 'json': {'term_color': 137, 'icon': '\ue60b', 'color': 'F5C06F'}, 'rss': {'term_color': 166, 'icon': '\ue619', 'color': 'F16529'}, 'cxx': {'term_color': 67, 'icon': '\ue61d', 'color': '689FB6'}, 'png': {'term_color': 66, 'icon': '\ue60d', 'color': '3AFFDB'}, 'sh': {'term_color': 103, 'icon': '\ue795', 'color': '834F79'}, 'hpp': {'term_color': 231, 'icon': '\uf0fd', 'color': 'FFFFFF'}, 'pdf': {'icon': '\uf1c1'}, 'bat': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'fsx': {'term_color': 67, 'icon': '\ue7a7', 'color': '689FB6'}, 'ini': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'markdown': {'term_color': 229, 'icon': '\ue609', 'color': 'F09F17'}, 'db': {'term_color': 67, 'icon': '\ue706', 'color': '689FB6'}, 'twig': {'term_color': 65, 'icon': '\ue61c', 'color': '8FAA54'}, 'yaml': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'coffee': {'term_color': 130, 'icon': '\ue61b', 'color': '905532'}, 'bib': {'icon': '\uf19c'}, 'ejs': {'term_color': 229, 'icon': '\ue60e', 'color': 'F09F17'}, 'dart': {'term_color': 231, 'icon': '\ue798', 'color': 'FFFFFF'}, 'edn': {'term_color': 65, 'icon': '\ue76a', 'color': '8FAA54'}, 'slim': {'term_color': 208, 'icon': '\ue60e', 'color': 'D4843E'}, 'clj': {'term_color': 65, 'icon': '\ue768', 'color': '8FAA54'}, 'dump': {'term_color': 67, 'icon': '\ue706', 'color': '689FB6'}, 'hxx': {'term_color': 231, 'icon': '\uf0fd', 'color': 'FFFFFF'}, 'php': {'term_color': 60, 'icon': '\ue608', 'color': '834F79'}, 'ico': {'term_color': 66, 'icon': '\ue60d', 'color': '3AFFDB'}, 'yml': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}}, 'directory_icon': '\ue5ff', 'parent_icon': '\ue5fe', 'mark_icon': '*', 'enable_syntax_highlight': 1, 'exact_matches': {'.vimrc': {'term_color': 231, 'icon': '\ue62b', 'color': 'FFFFFF'}, 'gruntfile.coffee': {'term_color': 229, 'icon': '\ue611', 'color': 'F09F17'}, 'bash_profile': {'icon': '\ue795'}, '_gvimrc': {'term_color': 231, 'icon': '\ue62b', 'color': 'FFFFFF'}, '_vimrc': {'term_color': 231, 'icon': '\ue62b', 'color': 'FFFFFF'}, 'dropbox': {'term_color': 231, 'icon': '\ue707', 'color': 'FFFFFF'}, '.gvimrc': {'term_color': 231, 'icon': '\ue62b', 'color': 'FFFFFF'}, 'license': {'term_color': 231, 'icon': '\ue60a', 'color': 'FFFFFF'}, 'procfile': {'term_color': 60, 'icon': '\ue607', 'color': '834F79'}, '.bash_profile': {'icon': '\ue795'}, '.gitignore': {'icon': '\uf113'}, 'gruntfile.js': {'term_color': 229, 'icon': '\ue611', 'color': 'F09F17'}, '.bashrc': {'icon': '\ue795'}, '.bashprofile': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'gulpfile.coffee': {'term_color': 205, 'icon': '\ue610', 'color': 'CB6F6F'}, 'gruntfile.ls': {'term_color': 229, 'icon': '\ue611', 'color': 'F09F17'}, 'node_modules': {'term_color': 65, 'icon': '\ue718', 'color': '8FAA54'}, 'gulpfile.js': {'term_color': 205, 'icon': '\ue610', 'color': 'CB6F6F'}, 'bashrc': {'icon': '\ue795'}, '.zshrc': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'gulpfile.ls': {'term_color': 205, 'icon': '\ue610', 'color': 'CB6F6F'}, 'docker-compose.yml': {'term_color': 229, 'icon': '\ue7b0', 'color': 'F09F17'}, '.gitconfig': {'icon': '\uf113'}, '.ds_store': {'term_color': 231, 'icon': '\ue615', 'color': 'FFFFFF'}, 'react.jsx': {'term_color': 67, 'icon': '\ue625', 'color': '689FB6'}, 'dockerfile': {'term_color': 67, 'icon': '\ue7b0', 'color': '689FB6'}, 'favicon.ico': {'term_color': 229, 'icon': '\ue623', 'color': 'F09F17'}}, 'nested_closed_tree_icon': '\ue5ff', 'column_length': 2, 'default_icon': '\ue612', 'nested_opened_tree_icon': '\ue5fe', 'exact_dir_matches': {'Templates': {'icon': '\uf0c5'}, 'Dropbox': {'icon': '\ue707'}, 'Pictures': {'icon': '\ue244'}, 'Documents': {'icon': '\uf401'}, '.git': {'icon': '\ue5fb'}, 'Music': {'icon': '\uf025'}, 'Public': {'icon': '\uf42b'}, 'Downloads': {'icon': '\uf498'}, 'Videos': {'icon': '\uf447'}, 'Desktop': {'icon': '\uf108'}}, 'root_opened_tree_icon': '\ue5fe', 'pattern_matches': {'.*angular.*\\.js$': {'term_color': 131, 'icon': '\ue753', 'color': 'AE403F'}, '.*materialize.*\\.css$': {'term_color': 209, 'icon': '\ue7b6', 'color': 'EE6E73'}, '.*jquery.*\\.js$': {'term_color': 67, 'icon': '\ue750', 'color': '689FB6'}, '.*backbone.*\\.js$': {'term_color': 57, 'icon': '\ue752', 'color': '44788E'}, '.*vimrc.*': {'term_color': 231, 'icon': '\ue62b', 'color': 'FFFFFF'}, '.*materialize.*\\.js$': {'term_color': 209, 'icon': '\ue7b6', 'color': 'EE6E73'}, '.*mootools.*\\.js$': {'term_color': 231, 'icon': '\ue78f', 'color': 'FFFFFF'}, '.*require.*\\.js$': {'term_color': 67, 'icon': '\ue770', 'color': '689FB6'}, 'Vagrantfile$': {'term_color': 231, 'icon': '\uf2b8', 'color': 'FFFFFF'}}, 'directory_symlink_icon': '\uf482'}

some of it does not contins color , like
'.bash_profile': {'icon': '\ue795'}
I think something wrong when load this vars from config file

[bug] ValueError: not enough values to unpack (expectd 2, got 0)

" File: $XDG_CONFIG_HOME/nvim/test.vim
" OS: linux v5.4.13
" Vi: nvim v0.4.3
" Py: cpython v3.9.0b3
" Term: guake v3.7.0
set runtimepath=$VIMRUNTIME,$GITHUBWORKSPACE/Shougo/defx.nvim,$GITHUBWORKSPACE/kristijanhusak/defx-icons
nnoremap <expr> C defx#do_action('link')
nnoremap <expr> p defx#do_action('paste')
autocmd VimEnter * call defx#custom#option('_', {
				\ 'columns': 'icons:filename',
				\ })
" vi -u $XDG_CONFIG_HOME/nvim/test.vim
Defx

jjjjjCpr2
0

<CR>
1

the icons of icons:filename is necessary.
$GITHUBWORKSPACE/kristijanhusak/defx-icons is necessary.

i don't determine the bug is derived from defx or this plugin ... the function defx#do_action('link') is added recently. before it was added, the bug does not existed.

The icon is only half displayed

1_U@A QYKUS6M9}AZ49GV(2

Hello, I have a little problem. I don't know why my icon is only displayed in half. It looks like an axisymmetric graph, but only the left half is displayed. I installed Vim-DevIcons, which enables me to generate ICONS on my start screen. Can you help me, please?
你好 我遇到了一点问题 我不知道为什么我的图标只显示一半,那个样子就像是轴对称图形一样,但是只显示左边的一半,我检查了我的配置,没有问题,而且我的VIM开始欢迎界面的图标却是正常的。我安装了vim-devicons,它能够使我的开始界面产生图标.请问你能帮我吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.