Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mesalilac/darkcode.nvim

neovim color scheme
https://github.com/mesalilac/darkcode.nvim

Last synced: about 2 months ago
JSON representation

neovim color scheme

Awesome Lists containing this project

README

        

darkcode.nvim

![VSCode.nvim](./demo.png)

## Supported Plugins

- [BarBar](https://github.com/romgrk/barbar.nvim)
- [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
- [Dashboard](https://github.com/glepnir/dashboard-nvim)
- [Git Gutter](https://github.com/airblade/vim-gitgutter)
- [Git Signs](https://github.com/lewis6991/gitsigns.nvim)
- [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
- [LSP](https://github.com/neovim/nvim-lspconfig)
- [Lualine](https://github.com/hoob3rt/lualine.nvim)
- [NvimTree](https://github.com/kyazdani42/nvim-tree.lua)
- [Telescope](https://github.com/nvim-telescope/telescope.nvim)
- [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
- [nvim-compe](https://github.com/hrsh7th/nvim-compe)

## ⬇️ Installation

Install via package manager

```lua
-- Packer:
use 'Senpai-10/darkcode.nvim'
```

```vim
" Vim-Plug:
Plug 'Senpai-10/darkcode.nvim'
```

## 🚀 Usage

```lua
-- Lua:
-- For dark theme (neovim's default)
vim.o.background = 'dark'
-- For light theme
vim.o.background = 'light'

local c = require('darkcode.colors')
require('darkcode').setup({
-- Enable transparent background
transparent = true,

-- Enable italic comment
italic_comments = true,

-- Disable nvim-tree background color
disable_nvimtree_bg = true,

-- Override colors (see ./lua/darkcode/colors.lua)
color_overrides = {
vscLineNumber = '#FFFFFF',
},

-- Override highlight groups (see ./lua/darkcode/theme.lua)
group_overrides = {
-- this supports the same val table as vim.api.nvim_set_hl
-- use colors from this colorscheme by requiring vscode.colors!
Cursor = { fg=c.vscDarkBlue, bg=c.vscLightGreen, bold=true },
}
})
```

If you are using [`lualine`](https://github.com/hoob3rt/lualine.nvim), you can also enable the provided theme:

```lua
require('lualine').setup({
options = {
-- ...
theme = 'darkcode',
-- ...
},
})
```

[nvim-bufferline.lua](https://github.com/akinsho/nvim-bufferline.lua) setup for exact match as screenshots

```lua
require("bufferline").setup({
options = {
buffer_close_icon = "",
close_command = "Bdelete %d",
close_icon = "",
indicator_icon = " ",
left_trunc_marker = "",
modified_icon = "●",
offsets = { { filetype = "NvimTree", text = "EXPLORER", text_align = "center" } },
right_mouse_command = "Bdelete! %d",
right_trunc_marker = "",
show_close_icon = false,
show_tab_indicators = true,
},
highlights = {
fill = {
guifg = { attribute = "fg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "StatusLineNC" },
},
background = {
guifg = { attribute = "fg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "StatusLine" },
},
buffer_visible = {
gui = "",
guifg = { attribute = "fg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "Normal" },
},
buffer_selected = {
gui = "",
guifg = { attribute = "fg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "Normal" },
},
separator = {
guifg = { attribute = "bg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "StatusLine" },
},
separator_selected = {
guifg = { attribute = "fg", highlight = "Special" },
guibg = { attribute = "bg", highlight = "Normal" },
},
separator_visible = {
guifg = { attribute = "fg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "StatusLineNC" },
},
close_button = {
guifg = { attribute = "fg", highlight = "Normal" },
guibg = { attribute = "bg", highlight = "StatusLine" },
},
close_button_selected = {
guifg = { attribute = "fg", highlight = "normal" },
guibg = { attribute = "bg", highlight = "normal" },
},
close_button_visible = {
guifg = { attribute = "fg", highlight = "normal" },
guibg = { attribute = "bg", highlight = "normal" },
},
},
})
```

## Switching theme

```
:lua require('darkcode').change_style('light')
:lua require('darkcode').change_style('dark')
```

## 🍭 Extra folder

- [Kitty](https://sw.kovidgoyal.net/kitty/) color scheme
- [Alacritty](https://github.com/alacritty/alacritty) color scheme
- [Xresources](https://wiki.debian.org/Xresources) color scheme
- [galaxyline.nvim](https://github.com/glepnir/galaxyline.nvim) theme
- [zathura](https://pwmt.org/projects/zathura/) color scheme

## Something is broken but I know how to fix it!

Pull requests are welcome! Feel free to send one with an explanation!