2026-08-27 11:54:06 +01:00
|
|
|
vim.pack.add({ { src = 'https://github.com/catppuccin/nvim', name = 'catppuccin' } })
|
|
|
|
|
|
|
|
|
|
require('catppuccin').setup({
|
|
|
|
|
-- Follow 'background', which the TUI sets from the terminal on startup
|
|
|
|
|
flavour = 'auto',
|
|
|
|
|
background = {
|
|
|
|
|
light = 'latte',
|
|
|
|
|
dark = 'macchiato',
|
|
|
|
|
},
|
2026-09-09 15:57:04 +01:00
|
|
|
custom_highlights = function(colors)
|
|
|
|
|
return {
|
|
|
|
|
-- CursorLine sits a shade away from the tree's own mantle background,
|
|
|
|
|
-- so the file you're viewing is invisible in nvim-tree. Give the tree
|
|
|
|
|
-- a band you can actually pick out.
|
|
|
|
|
NvimTreeCursorLine = { bg = colors.surface1 },
|
|
|
|
|
}
|
|
|
|
|
end,
|
2026-08-27 11:54:06 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
vim.cmd.colorscheme('catppuccin')
|