aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2cb28b3..cf25c87 100644
--- a/README.md
+++ b/README.md
@@ -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!
}
```