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 /doc/colorizer-lua.txt | |
parent | Update docs and luadocs (diff) |
Allow excluding files from highlight with '*' (#11)
Fixes GH-5
Diffstat (limited to 'doc/colorizer-lua.txt')
-rw-r--r-- | doc/colorizer-lua.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/colorizer-lua.txt b/doc/colorizer-lua.txt index 2d27d27..9f2afda 100644 --- a/doc/colorizer-lua.txt +++ b/doc/colorizer-lua.txt @@ -91,7 +91,7 @@ PARAMETERS: 'css'; 'javascript'; html = { - mode = 'foreground'; + mode = 'foreground'; } } @@ -112,6 +112,13 @@ PARAMETERS: css = { rgb_fn = true; }; -- Enable parsing rgb(...) functions in css. 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! + } < |colorizer.highlight_buffer| *colorizer.highlight_buffer* |