Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/NTBBloodbath/sweetie.nvim

A clean, delightful and highly customizable Neovim colorscheme written in Lua
https://github.com/NTBBloodbath/sweetie.nvim

colorscheme neovim neovim-plugin

Last synced: about 2 months ago
JSON representation

A clean, delightful and highly customizable Neovim colorscheme written in Lua

Awesome Lists containing this project

README

        

# sweetie.nvim

A clean, delightful and highly customizable Neovim colorscheme written in Lua that
includes [extra themes](./extras) for other software like Kitty and WezTerm terminal
emulators, FISH shell and some others.

Sweetie has a great contrast that is friendly with your eyes, every color was selected
by hand after a long day testing different colors one by one and comparing them.

> sweetie.nvim requires at least Neovim `>=
0.7.2` in order to work!

---

dark variant

![dark variant demo](https://github.com/NTBBloodbath/sweetie.nvim/assets/36456999/5f019e49-74d3-47d7-9e4b-3c2bd0258534)

light variant

![light variant demo](https://github.com/NTBBloodbath/sweetie.nvim/assets/36456999/dbb93e07-b97f-4c86-98b7-c2fd6ec9df08)

## Installation

- [`rocks.nvim`](https://github.com/nvim-neorocks/rocks.nvim):
```vim
:Rocks install sweetie.nvim
```

- [`packer.nvim`](https://github.com/wbthomason/packer.nvim):
```lua
use("NTBBloodbath/sweetie.nvim")
```

- [`lazy.nvim`](https://github.com/folke/lazy.nvim):
```lua
require("lazy").setup({
{ "NTBBloodbath/sweetie.nvim" }
})
```

## Usage

Just set the colorscheme in your configuration:
```lua
vim.cmd.colorscheme("sweetie")
```

You can also use the following method if you're using [`rocks-config.nvim`](https://github.com/nvim-neorocks/rocks-config.nvim) with your `rocks.nvim` installation:
```toml
[config]
colorscheme = "sweetie"
```

> If you want to use light variant you can just change your `background` Neovim option to `light`.

You can customize sweetie by using the `vim.g.sweetie` table, too. Please note that you should
call it before setting up sweetie as your colorscheme.
```lua
--- Default configuration
vim.g.sweetie = {
-- Pop-up menu pseudo-transparency
-- It requires `pumblend` option to have a non-zero value
pumblend = {
enable = true,
transparency_amount = 20,
},
-- Override default sweetie color palettes
-- Palette fields:
-- bg
-- fg
-- bg_hl
-- bg_alt
-- fg_alt
-- grey
-- dark_grey
-- red
-- orange
-- green
-- teal
-- yellow
-- blue
-- magenta
-- violet
-- cyan
palette = {
dark = {},
light = {},
},
-- Override default highlighting groups options
overrides = {},
-- Custom plugins highlighting groups
integrations = {
lazy = true,
neorg = true,
neogit = true,
neomake = true,
telescope = true,
},
-- Enable custom cursor coloring even in terminal Neovim sessions
cursor_color = true,
-- Use sweetie's palette in `:terminal` instead of your default terminal colorscheme
terminal_colors = true,
}
```

If you want to override any highlighting group, you can use the `overrides` field in
the configuration table. For example, to disable italics in the colorscheme:
```lua
overrides = {
Comment = { italic = false },
CommentBold = { italic = false },
Keyword = { italic = false },
Boolean = { italic = false },
Class = { italic = false },
-- Optional, just if you use Java and you do not want some extra italics
-- ["@type.java"] = { italic = false },
-- ["@type.qualifier.java"] = { italic = false },
}
```

> Every `overrides` field accept all the `:h nvim_set_hl` parameters.

## Roadmap

- [x] Add light theme variant
- [x] Allow to override default color palette
- [ ] Add more extra themes
- [ ] bat
- [x] termux
- [x] fish shell
- [x] florisboard
- [x] windows terminal

## License

As always, this project is licensed under [GPLv3](./LICENSE) license.