Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mesalilac/darkcode.nvim
- Owner: mesalilac
- License: mit
- Created: 2022-11-17T22:04:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T17:50:32.000Z (about 2 years ago)
- Last Synced: 2024-05-06T06:21:43.063Z (8 months ago)
- Language: Lua
- Size: 250 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!