diff options
author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-10-18 09:56:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 09:56:49 -0700 |
commit | f661199197cc1346124b0b12e77f25150c50a776 (patch) | |
tree | ec4f9429458b4e13048c1f755e46509434554441 /README.md | |
parent | Update docs and luadocs (diff) |
Allow excluding files from highlight with '*' (#11)
Fixes GH-5
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -64,7 +64,7 @@ require 'colorizer'.setup { 'css'; 'javascript'; html = { - mode = 'foreground'; + mode = 'foreground'; } } @@ -83,7 +83,14 @@ require 'colorizer'.setup({ require 'colorizer'.setup { '*'; -- Highlight all files, but customize some others. css = { rgb_fn = true; }; -- Enable parsing rgb(...) functions in css. - html = { no_names = true; } -- Disable parsing "names" like Blue or Gray + html = { names = false; } -- Disable parsing "names" like Blue or Gray +} + +-- Exclude some filetypes from highlighting by using `!` +require 'colorizer'.setup { + '*'; -- Highlight all files, but customize some others. + '!vim'; -- Exclude vim from highlighting. + -- Exclusion Only makes sense if '*' is specified! } ``` |