From ccc8b52008c10980babd194773b7d6c9843fd3b7 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Thu, 5 Dec 2024 08:32:26 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9Bspecify=20filetypes=20so=20h?= =?UTF-8?q?ighlighter=20isn't=20on=20when=20it=20shouldn't=20be?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/ccc.lua | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.config/nvim/lua/plugins/ccc.lua b/.config/nvim/lua/plugins/ccc.lua index 68d0e4f..737e452 100644 --- a/.config/nvim/lua/plugins/ccc.lua +++ b/.config/nvim/lua/plugins/ccc.lua @@ -1,28 +1,31 @@ return { 'uga-rosa/ccc.nvim', - ft = { - 'markdown', - 'javascript', - 'html', - 'css', - 'python', - 'json', - 'lua', - 'toml', - 'yaml', - }, - cmd = { 'CccPick', 'CccConvert', 'CccHighlighterToggle', 'CccHighlighterEnable', 'CccHighlighterDisable' }, + event = 'VeryLazy', + -- cmd = { 'CccPick', 'CccConvert', 'CccHighlighterToggle', 'CccHighlighterEnable', 'CccHighlighterDisable' }, opts = { highlighter = { auto_enable = true, lsp = true, update_insert = true, + filetypes = { + 'markdown', + 'javascript', + 'html', + 'css', + 'python', + 'json', + 'lua', + 'toml', + 'yaml', + 'asciidoc', + }, excludes = { + --[[ 'lazy', 'NvimTree', 'alpha', 'dashboard', 'help', - 'man', + 'man', ]] }, }, recognize = { @@ -41,4 +44,4 @@ return { local ccc = require('ccc') ccc.setup(opts) end, -} \ No newline at end of file +}