You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2
Original file line number
Diff line number
Diff line change
@@ -70,16 +70,31 @@ let g:NERDTreeExactMatchHighlightColor = {} " this line is needed to avoid error
70
70
let g:NERDTreeExactMatchHighlightColor['.gitignore'] = s:git_orange " sets the color for .gitignore files
71
71
72
72
let g:NERDTreePatternMatchHighlightColor = {} " this line is needed to avoid error
73
-
let g:NERDTreePatternMatchHighlightColor['.*_spec\.rb$'] = s:rspec_red " sets the color files ending with _spec.rb
73
+
let g:NERDTreePatternMatchHighlightColor['.*_spec\.rb$'] = s:rspec_red " sets the color for files ending with _spec.rb
74
74
75
75
```
76
76
77
77
* Disable Highlight for specific file extension
78
78
```vim
79
+
" If you have vim-devicons you can customize your icons for each file type.
79
80
let g:NERDTreeExtensionHighlightColor = {} "this line is needed to avoid error
80
81
let g:NERDTreeExtensionHighlightColor['css'] = '' "assigning it to an empty string will skip highlight
81
82
```
82
83
83
-
Obs: If you have [vim-devicons](https://github.com/ryanoasis/vim-devicons) and you want to customize icons you can customize your icons for each file type.
84
+
85
+
86
+
* Disable uncommon file extensions highlighting (this is a good idea if you are experiencing lag when scrolling)
87
+
```vim
88
+
let g:NERDTreeLimitedSyntax = 1
89
+
```
90
+
* Disable all default file extensions highlighting (you can use this to easily customize which extensions you want to highlight)
91
+
```vim
92
+
let g:NERDTreeSyntaxDisableDefaultExtensions = 1
93
+
```
94
+
* Customize which file extensions are enabled (you only need this if you set `g:NERDTreeLimitedSyntax` or `g:NERDTreeSyntaxDisableDefaultExtensions`)
95
+
```vim
96
+
" set g:NERDTreeExtensionHighlightColor if you want a custom color instead of the default one
97
+
let g:NERDTreeSyntaxEnabledExtensions = ['hbs', 'lhs'] " enable highlight to .hbs and .lhs files with default colors
98
+
```
84
99
### generate_files.sh script
85
100
There is a script folder called generate_files.sh that will generate all the files supported by this plugin by default for a quick review. These files will be generated on a 'files' subfolder.
0 commit comments