Add catppuccin colorscheme, latte in light mode and macchiato in dark
Installed via vim.pack, matching the other plugins here. The pack is
named explicitly ('catppuccin') because the repo is called 'nvim', which
would otherwise be the plugin's name in the lock file and on disk.
flavour = 'auto' with background = { light = 'latte', dark = 'macchiato' }
so the flavour follows 'background', which the TUI sets from the terminal
on startup. It is required first from config/plugins/init.lua so the other
plugins load with the colorscheme already applied.
Verified headlessly in a single nvim: `set background=light` gives
catppuccin-latte and `set background=dark` gives catppuccin-macchiato, so
a running instance can be switched by hand with `:set background=` as the
top-level README already suggests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
e7b1d3aa83
commit
2f1cd1a1c3
4 changed files with 24 additions and 0 deletions
|
|
@ -39,6 +39,12 @@ machine gets the same set.
|
||||||
|
|
||||||
## Defaults worth knowing
|
## Defaults worth knowing
|
||||||
|
|
||||||
|
- **The colorscheme is catppuccin**, `flavour = 'auto'`: latte on a light
|
||||||
|
`background`, macchiato on a dark one. The TUI sets `background` from the
|
||||||
|
terminal at startup, so a fresh nvim matches the system appearance. A running
|
||||||
|
one does not follow a live change — but `:set background=light` (or `dark`)
|
||||||
|
swaps the flavour too, since Neovim reloads the colorscheme whenever
|
||||||
|
`background` is set.
|
||||||
- **Spell checking is on globally**, `en_gb` — in every buffer, code included,
|
- **Spell checking is on globally**, `en_gb` — in every buffer, code included,
|
||||||
not just prose filetypes.
|
not just prose filetypes.
|
||||||
- **Autocompletion is on** via Neovim's own `vim.o.autocomplete`, with a rounded
|
- **Autocompletion is on** via Neovim's own `vim.o.autocomplete`, with a rounded
|
||||||
|
|
|
||||||
12
neovim/config/plugins/catppuccin.lua
Normal file
12
neovim/config/plugins/catppuccin.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
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',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.cmd.colorscheme('catppuccin')
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
-- The colorscheme goes first so everything after it is drawn with it applied
|
||||||
|
require('config.plugins.catppuccin')
|
||||||
require('config.plugins.diffview')
|
require('config.plugins.diffview')
|
||||||
require('config.plugins.fzf-lua')
|
require('config.plugins.fzf-lua')
|
||||||
require('config.plugins.gitsigns')
|
require('config.plugins.gitsigns')
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
"catppuccin": {
|
||||||
|
"rev": "edefef779ab08ce1a4a404713e3012b0d202bd35",
|
||||||
|
"src": "https://github.com/catppuccin/nvim"
|
||||||
|
},
|
||||||
"diffview.nvim": {
|
"diffview.nvim": {
|
||||||
"rev": "4516612fe98ff56ae0415a259ff6361a89419b0a",
|
"rev": "4516612fe98ff56ae0415a259ff6361a89419b0a",
|
||||||
"src": "https://github.com/sindrets/diffview.nvim"
|
"src": "https://github.com/sindrets/diffview.nvim"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue