|
| 1 | +return { |
| 2 | + 'brenoprata10/nvim-highlight-colors', |
| 3 | + lazy = true, |
| 4 | + config = function() |
| 5 | + require("nvim-highlight-colors").setup { |
| 6 | + ---Render style |
| 7 | + ---@usage 'background'|'foreground'|'virtual' |
| 8 | + render = 'virtual', |
| 9 | + |
| 10 | + ---Set virtual symbol (requires render to be set to 'virtual') |
| 11 | + virtual_symbol = '■', |
| 12 | + |
| 13 | + ---Set virtual symbol suffix (defaults to '') |
| 14 | + virtual_symbol_prefix = '', |
| 15 | + |
| 16 | + ---Set virtual symbol suffix (defaults to ' ') |
| 17 | + virtual_symbol_suffix = ' ', |
| 18 | + |
| 19 | + ---Set virtual symbol position() |
| 20 | + ---@usage 'inline'|'eol'|'eow' |
| 21 | + ---inline mimics VS Code style |
| 22 | + ---eol stands for `end of column` - Recommended to set `virtual_symbol_suffix = ''` when used. |
| 23 | + ---eow stands for `end of word` - Recommended to set `virtual_symbol_prefix = ' ' and virtual_symbol_suffix = ''` when used. |
| 24 | + virtual_symbol_position = 'inline', |
| 25 | + |
| 26 | + ---Highlight hex colors, e.g. '#FFFFFF' |
| 27 | + enable_hex = true, |
| 28 | + |
| 29 | + ---Highlight short hex colors e.g. '#fff' |
| 30 | + enable_short_hex = true, |
| 31 | + |
| 32 | + ---Highlight rgb colors, e.g. 'rgb(0 0 0)' |
| 33 | + enable_rgb = true, |
| 34 | + |
| 35 | + ---Highlight hsl colors, e.g. 'hsl(150deg 30% 40%)' |
| 36 | + enable_hsl = true, |
| 37 | + |
| 38 | + ---Highlight CSS variables, e.g. 'var(--testing-color)' |
| 39 | + enable_var_usage = true, |
| 40 | + |
| 41 | + ---Highlight named colors, e.g. 'green' |
| 42 | + enable_named_colors = true, |
| 43 | + |
| 44 | + ---Highlight tailwind colors, e.g. 'bg-blue-500' |
| 45 | + enable_tailwind = false, |
| 46 | + |
| 47 | + ---Set custom colors |
| 48 | + ---Label must be properly escaped with '%' to adhere to `string.gmatch` |
| 49 | + --- :help string.gmatch |
| 50 | + custom_colors = { |
| 51 | + { label = '%-%-theme%-primary%-color', color = '#0f1219' }, |
| 52 | + { label = '%-%-theme%-secondary%-color', color = '#5a5d64' }, |
| 53 | + }, |
| 54 | + |
| 55 | + -- Exclude filetypes or buftypes from highlighting e.g. 'exclude_buftypes = {'text'}' |
| 56 | + exclude_filetypes = {}, |
| 57 | + exclude_buftypes = {} |
| 58 | + } |
| 59 | + end |
| 60 | +} |
0 commit comments