diff --git a/.config/nvim/lua/plugins/ccc.lua b/.config/nvim/lua/plugins/ccc.lua new file mode 100644 index 0000000..68d0e4f --- /dev/null +++ b/.config/nvim/lua/plugins/ccc.lua @@ -0,0 +1,44 @@ +return { + 'uga-rosa/ccc.nvim', + ft = { + 'markdown', + 'javascript', + 'html', + 'css', + 'python', + 'json', + 'lua', + 'toml', + 'yaml', + }, + cmd = { 'CccPick', 'CccConvert', 'CccHighlighterToggle', 'CccHighlighterEnable', 'CccHighlighterDisable' }, + opts = { + highlighter = { + auto_enable = true, + lsp = true, + update_insert = true, + excludes = { + 'NvimTree', + 'alpha', + 'dashboard', + 'help', + 'man', + }, + }, + recognize = { + input = true, + output = true, + }, + highlight_mode = 'virtual', + preserve = true, + lsp = true, + --[[ pickers = { + require('ccc').picker.ansi_escape(), + }, ]] + }, + + config = function(_, opts) + local ccc = require('ccc') + ccc.setup(opts) + end, +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/colorizer.lua b/.config/nvim/lua/plugins/colorizer.lua index e6180c1..b93c884 100644 --- a/.config/nvim/lua/plugins/colorizer.lua +++ b/.config/nvim/lua/plugins/colorizer.lua @@ -1,26 +1,25 @@ return { - 'norcalli/nvim-colorizer.lua', - -- event = { 'BufEnter', 'BufNewFile' }, - ft = { - 'markdown', - 'javascript', - 'html', - 'css', - 'python', - 'json', - 'lua', - 'toml', - 'yaml', - }, - opts = { - 'css', - 'javascript', - 'html', - 'markdown', - 'python', - 'json', - 'lua', - 'toml', - 'yaml', - }, -} \ No newline at end of file + 'norcalli/nvim-colorizer.lua', + ft = { + 'markdown', + 'javascript', + 'html', + 'css', + 'python', + 'json', + 'lua', + 'toml', + 'yaml', + }, + opts = { + 'css', + 'javascript', + 'html', + 'markdown', + 'python', + 'json', + 'lua', + 'toml', + 'yaml', + }, +} diff --git a/.config/nvim/lua/plugins/disabled.lua b/.config/nvim/lua/plugins/disabled.lua index 8cb2ade..6f8b028 100644 --- a/.config/nvim/lua/plugins/disabled.lua +++ b/.config/nvim/lua/plugins/disabled.lua @@ -1,4 +1,8 @@ return { + { + 'norcalli/nvim-colorizer.lua', + enabled = false, + }, { 'ziontee113/icon-picker.nvim', enabled = false, @@ -40,4 +44,4 @@ return { }, enabled = false, }, -} +} \ No newline at end of file