• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Xuyuanp/nerdtree-git-plugin: A plugin of NERDTree showing git status

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Xuyuanp/nerdtree-git-plugin

开源软件地址:

https://github.com/Xuyuanp/nerdtree-git-plugin

开源编程语言:

Vim Script 100.0%

开源软件介绍:

nerdtree-git-plugin

Github Action License: WTFPL GitHub contributors

A plugin of NERDTree showing git status flags.

The original project git-nerdtree will not be maintained any longer.

Imgur

Installation

Use your favorite package manager. Here is the example of using vim-plug

Plug 'preservim/nerdtree' |
            \ Plug 'Xuyuanp/nerdtree-git-plugin'

New project

Yanil: Another nerdtree like plugin for neovim(>= 0.5.0) only. I'm focusing on this project.

FAQ

Got error message like Error detected while processing function 177[2]..178[22]..181[7]..144[9]..142[36]..238[4]..NERDTreeGitStatusRefreshListener[2]..NERDTreeGitStatusRefresh: line 6: E484: Can't open file /tmp/vZEZ6gM/1 while nerdtree opening in fish, how to resolve this problem?

This was because that vim couldn't execute system function in fish. Add set shell=sh in your vimrc.

This issue has been fixed.

How to config custom symbols?

Use this variable to change symbols.

let g:NERDTreeGitStatusIndicatorMapCustom = {
                \ 'Modified'  :'',
                \ 'Staged'    :'',
                \ 'Untracked' :'',
                \ 'Renamed'   :'',
                \ 'Unmerged'  :'',
                \ 'Deleted'   :'',
                \ 'Dirty'     :'',
                \ 'Ignored'   :'',
                \ 'Clean'     :'✔︎',
                \ 'Unknown'   :'?',
                \ }

There is a predefined map used nerdfonts, to enable it

let g:NERDTreeGitStatusUseNerdFonts = 1 " you should install nerdfonts by yourself. default: 0

How to show ignored status?

let g:NERDTreeGitStatusShowIgnored = 1 " a heavy feature may cost much more time. default: 0

How to cooperate with vim-devicons

Plug 'preservim/nerdtree' |
            \ Plug 'Xuyuanp/nerdtree-git-plugin' |
            \ Plug 'ryanoasis/vim-devicons'

Make sure they are in the right order.

How to indicate every single untracked file under an untracked dir?

let g:NERDTreeGitStatusUntrackedFilesMode = 'all' " a heavy feature too. default: normal

How to set git executable file path?

let g:NERDTreeGitStatusGitBinPath = '/your/file/path' " default: git (auto find in path)

How to show Clean indicator?

let g:NERDTreeGitStatusShowClean = 1 " default: 0

How to hide the boring brackets([ ])?

let g:NERDTreeGitStatusConcealBrackets = 1 " default: 0

NOTICE: DO NOT enable this feature if you have also installed vim-devicons.

Shameless Self Promotion

Yanil: Yet Another Nerdtree In Lua

Credits




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap