From 4da872ec9c00609f3da45e9686ca6a14b8c48047 Mon Sep 17 00:00:00 2001 From: Nima Askarian <88832088+nimaaskarian@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:08:02 +0330 Subject: [PATCH 1/3] Add Lazy setup to README.md --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index abdc368..b89f332 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,26 @@ Requires Neovim >= 0.4.0 and `set termguicolors` (I'm looking into relaxing these constraints). If you don't have true color for your terminal or are unsure, [read this excellent guide](https://github.com/termstandard/colors). -Use your plugin manager or clone directly into your `runtimepath`. +Either clone directly into your `runtimepath`, use one of the package +managers below, or use your own package manager. +### Lazy +```lua +{ + "norcalli/nvim-colorizer.lua", + config=true, + lazy=true, + cmd = { + "ColorizerToggle", + "ColorizerAttachToBuffer", + "ColorizerReloadAllBuffers", + "ColorizerDetachFromBuffer", + }, + files = { "*.css", "*.jsx", "*.html" }, +}, +``` + +### Plug ```vim Plug 'norcalli/nvim-colorizer.lua' ``` From 646d4f34924c16dd403e1ea80b5f8c42b5e09663 Mon Sep 17 00:00:00 2001 From: Nima Askarian <88832088+nimaaskarian@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:18:28 +0330 Subject: [PATCH 2/3] Fix filetype configuration --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b89f332..b16ed60 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,12 @@ managers below, or use your own package manager. "ColorizerReloadAllBuffers", "ColorizerDetachFromBuffer", }, - files = { "*.css", "*.jsx", "*.html" }, + opts = { + "css", + "jsx", + "html", + }, + ft = { "css", "javascriptreact", "html"}, }, ``` From e23832a47c4c7be60f00f5f60fa1a309ecc4ac66 Mon Sep 17 00:00:00 2001 From: Nima Askarian <88832088+nimaaskarian@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:26:11 +0330 Subject: [PATCH 3/3] Fix opts (file types) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b16ed60..d34aca3 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,10 @@ managers below, or use your own package manager. }, opts = { "css", - "jsx", + "javascriptreact", "html", }, - ft = { "css", "javascriptreact", "html"}, + ft = { "css", "javascriptreact", "html" }, }, ```