From 655797e0f0e1c80ffb548852ea223fdd39e5fb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Aranda=20Hern=C3=A1ndez?= Date: Mon, 23 Nov 2020 12:19:16 -0600 Subject: [PATCH] Info on conditional loading --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 20301d0..7f0a27f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,14 @@ A very fast, multi-syntax context-sensitive color name highlighter
+

Conditional Loading

+ +If you want to only load this plugin on some files, you can use conditional loading feature in [vim plug](https://github.com/junegunn/vim-plug#example) + +``` +Plug 'ap/vim-css-color', { 'for': [ 'css', 'scss' ] } +``` + Inspired by [Niklas Hofer](http://www.vim.org/scripts/script.php?script_id=2150) and [Max Vasiliev](https://github.com/skammer/vim-css-color).