From 706ac2ace6e42731fb323cede79c63537a59b47f Mon Sep 17 00:00:00 2001 From: gered Date: Fri, 6 Sep 2024 23:22:46 -0400 Subject: [PATCH] add nvim-colorizer --- lazy-lock.json | 1 + lua/plugins/nvim-colorizer.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lua/plugins/nvim-colorizer.lua diff --git a/lazy-lock.json b/lazy-lock.json index 4dee485..f05f7be 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,6 +27,7 @@ "nvim-ansible": { "branch": "main", "commit": "9c3b4a771b8c8d7b4f2171466464d978cb3846f7" }, "nvim-autopairs": { "branch": "master", "commit": "19606af7c039271d5aa96bceff101e7523af3136" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, + "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, "nvim-dap": { "branch": "master", "commit": "281a2e4cd1e7a17cea7ecb1745d84a8ab1249925" }, "nvim-dap-ui": { "branch": "master", "commit": "1c351e4e417d4691da12948b6ecf966936a56d28" }, "nvim-lint": { "branch": "master", "commit": "debabca63c0905b59ce596a55a8e33eafdf66342" }, diff --git a/lua/plugins/nvim-colorizer.lua b/lua/plugins/nvim-colorizer.lua new file mode 100644 index 0000000..b468263 --- /dev/null +++ b/lua/plugins/nvim-colorizer.lua @@ -0,0 +1,11 @@ +return { + { + 'norcalli/nvim-colorizer.lua', + config = function() + -- no need to call this plugin's setup() apparently unless you want automatic buffer + -- attaching based on filetype. and to customize the default options. + + vim.keymap.set('n', 'tc', 'ColorizerToggle', { desc = '[T]oggle [C]olor Previewing' }) + end, + }, +}