• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Filetype icons for https://github.com/Shougo/defx.nvim

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

More Repositories

1

laravel-form-builder

Laravel Form builder for version 5+!
PHP
1,691
star
2

vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
Vim Script
1,436
star
3

vim-dadbod-completion

Database autocompletion powered by https://github.com/tpope/vim-dadbod
Vim Script
610
star
4

vim-hybrid-material

Material color scheme for Vim based on w0ng/vim-hybrid color scheme
Vim Script
545
star
5

neovim-config

Neovim configuration
Shell
254
star
6

vim-carbon-now-sh

Open selected text in https://carbon.now.sh
Vim Script
247
star
7

vim-packager

Vim plugin manager that utilizes "jobs" and "pack" features.
Vim Script
245
star
8

vim-js-file-import

Import/require files in javascript and typescript with single button!
Vim Script
143
star
9

defx-git

Git status implementation for https://github.com/Shougo/defx.nvim
Python
71
star
10

vim-dirvish-git

Git support for dirvish.vim
Vim Script
54
star
11

line-notes.nvim

Lua
33
star
12

tmux-simple-git-status

Add simple git status to your tmux statusline.
Shell
27
star
13

vim-simple-notifications

Vim Script
24
star
14

laravel4-form-builder

Laravel Form builder for version 4!
PHP
22
star
15

deoplete-phpactor

Phpactor integration for deoplete.nvim
Python
19
star
16

node_acl_sequelize

Sequelize implementation for node acl
JavaScript
17
star
17

vim-project-lint

Project level lint status right in your favorite file explorer
Vim Script
12
star
18

vimfiles

My Vim setup
Vim Script
8
star
19

completion-tags

Tags completion for completion-nvim
Lua
6
star
20

vim-create-pr

Open link to create PR directly from (neo)vim
Vim Script
4
star
21

cosmic_latte

☕ vim + emacs + textmate/sublime + atom + terminal (theme | colorscheme | color scheme) based on the color of the universe
Emacs Lisp
3
star