Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
87 lines
2.4 KiB
Markdown
87 lines
2.4 KiB
Markdown
# Defx icons
|
|
|
|
Custom implementation of [vim-devicons](https://github.com/ryanoasis/vim-devicons) for [defx.nvim](https://github.com/Shougo/defx.nvim).
|
|
|
|
![screenshot from 2018-11-22 23-39-41](https://user-images.githubusercontent.com/1782860/48923552-eeed0b80-eeaf-11e8-98e8-8f4e7ec85194.png)
|
|
|
|
## Usage
|
|
```vimL
|
|
: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:
|
|
|
|
```vimL
|
|
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:
|
|
|
|
```vimL
|
|
let g:defx_icons_gui_colors = {
|
|
\ 'red': 'FFFFFF'
|
|
\ }
|
|
```
|
|
|
|
For term:
|
|
|
|
```vimL
|
|
let g:defx_icons_term_colors = {
|
|
\ 'red': 2
|
|
\ }
|
|
```
|
|
|
|
For directory icons these highlight groups are defined:
|
|
|
|
```vimL
|
|
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:
|
|
|
|
```vimL
|
|
hi DefxIconsOpenedTreeIcon guifg=#FF0000
|
|
```
|
|
|
|
Or link it to something else that you want:
|
|
|
|
```vimL
|
|
hi link DefxIconsOpenedTreeIcon Error
|
|
```
|
|
|
|
## Thanks to
|
|
|
|
* [vim-devicons](https://github.com/ryanoasis/vim-devicons) for icons
|
|
* [vim-nerdtree-syntax-highlight](https://github.com/tiagofumo/vim-nerdtree-syntax-highlight) for colors
|