replace colorizer with ccc

This commit is contained in:
2024-12-02 08:50:22 -05:00
parent 5dd3f0ff59
commit c26b9b9187
3 changed files with 73 additions and 26 deletions
+44
View File
@@ -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,
}
+24 -25
View File
@@ -1,26 +1,25 @@
return { return {
'norcalli/nvim-colorizer.lua', 'norcalli/nvim-colorizer.lua',
-- event = { 'BufEnter', 'BufNewFile' }, ft = {
ft = { 'markdown',
'markdown', 'javascript',
'javascript', 'html',
'html', 'css',
'css', 'python',
'python', 'json',
'json', 'lua',
'lua', 'toml',
'toml', 'yaml',
'yaml', },
}, opts = {
opts = { 'css',
'css', 'javascript',
'javascript', 'html',
'html', 'markdown',
'markdown', 'python',
'python', 'json',
'json', 'lua',
'lua', 'toml',
'toml', 'yaml',
'yaml', },
}, }
}
+5 -1
View File
@@ -1,4 +1,8 @@
return { return {
{
'norcalli/nvim-colorizer.lua',
enabled = false,
},
{ {
'ziontee113/icon-picker.nvim', 'ziontee113/icon-picker.nvim',
enabled = false, enabled = false,
@@ -40,4 +44,4 @@ return {
}, },
enabled = false, enabled = false,
}, },
} }