This commit is contained in:
BearDad 2024-11-29 19:28:57 +01:00
parent 6286216071
commit fb81087eef
4 changed files with 43 additions and 1 deletions

View File

@ -1359,4 +1359,39 @@ ins_right {
-- Now don't forget to initialize lualine -- Now don't forget to initialize lualine
lualine.setup(config) lualine.setup(config)
require('colorizer').setup {
filetypes = { '*' },
user_default_options = {
names = true, -- "Name" codes like Blue or blue
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
RRGGBBAA = true, -- #RRGGBBAA hex codes
AARRGGBB = true, -- 0xAARRGGBB hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Highlighting mode. 'background'|'foreground'|'virtualtext'
mode = 'background', -- Set the display mode
-- Tailwind colors. boolean|'normal'|'lsp'|'both'. True is same as normal
tailwind = 'both', -- Enable tailwind colors
-- parsers can contain values used in |user_default_options|
sass = { enable = true, parsers = { 'css' } }, -- Enable sass colors
-- Virtualtext character to use
virtualtext = '',
-- Display virtualtext inline with color
virtualtext_inline = true,
-- Virtualtext highlight mode: 'background'|'foreground'
virtualtext_mode = 'foreground',
-- update color values even if buffer is not focused
-- example use: cmp_menu, cmp_docs
always_update = true,
},
-- all the sub-options of filetypes apply to buftypes
buftypes = {},
-- Boolean | List of usercommands to enable
user_commands = true, -- Enable all or some usercommands
}
vim.api.nvim_set_hl(0, 'CursorLine', { bg = '#191724' }) -- Use a darker or blended color vim.api.nvim_set_hl(0, 'CursorLine', { bg = '#191724' }) -- Use a darker or blended color
vim.wo.relativenumber = true

1
lua/chadrc.lua Normal file
View File

@ -0,0 +1 @@
return {}

View File

@ -83,7 +83,7 @@ return {
end end
-- Calculate padding for centering the greeting -- Calculate padding for centering the greeting
local logoWidth = logo:find '\n' - 1 -- Assuming the logo width is the width of the first line local logoWidth = logo:find '\n' - 18 -- Assuming the logo width is the width of the first line
local greetingWidth = #greeting local greetingWidth = #greeting
local padding = math.floor((logoWidth - greetingWidth) / 2) local padding = math.floor((logoWidth - greetingWidth) / 2)

View File

@ -72,4 +72,10 @@ return {
event = 'VeryLazy', event = 'VeryLazy',
enabled = vim.fn.has 'nvim-0.10.0' == 1, enabled = vim.fn.has 'nvim-0.10.0' == 1,
}, },
{
'NvChad/nvim-colorizer.lua',
event = 'BufReadPre',
opts = { -- set to setup table
},
},
} }