Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nekonako/xresources-nvim
🎨 Neovim colorscheme based on your xresources color
https://github.com/nekonako/xresources-nvim
colorscheme lua neovim
Last synced: 3 months ago
JSON representation
🎨 Neovim colorscheme based on your xresources color
- Host: GitHub
- URL: https://github.com/nekonako/xresources-nvim
- Owner: nekonako
- License: gpl-2.0
- Archived: true
- Created: 2021-03-10T01:46:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-23T12:47:00.000Z (almost 3 years ago)
- Last Synced: 2024-05-11T01:32:03.658Z (6 months ago)
- Topics: colorscheme, lua, neovim
- Language: Lua
- Homepage:
- Size: 1.02 MB
- Stars: 83
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Xresources-nvim
* Neovim colorscheme based on your xresources color *
#### Require
- Neovim 0.5
- xrdb#### Install
**Vim Plug**
```vim
Plug 'nekonako/xresources-nvim'
```#### Usage
- lua
`require('xresources')`
- lua inside vimscript
`lua require('xresources')`
- vimscript
`colorscheme xresources`
#### Notes
if you use light background, set neovim background to light.- lua
`vim.o.background = 'light'`
- lua inside vimscript
`lua vim.o.background = 'light'`
- vimscript
`set background=light`
#### Properties
| **Properties** | **Xresources** |
| :----------: | :--------------------: |
| fg | foreground |
| bg | background |
| black | color0 |
| red | color1 |
| green | color2 |
| yellow | color3 |
| blue | color4 |
| purple | color5 |
| cyan | color6 |
| white | color7 |
| light_black | color8 |
| light_red | color9 |
| light_green | color10 |
| light_yellow | color11 |
| light_blue | color12 |
| light_purple | color13 |
| light_cyan | color14 |
| light_white | color15 |
| grey | background + 0xf0f10 |
| grey1 | background + 0x363940 |
| none | NONE |#### Example using properties
Let say i want using xresources to my [galaxyline](https://github.com/glepnir/galaxyline.nvim)
configuration
```lua
local galaxyline = require('galaxyline')
local color = require('xresources')
local section = galaxyline.sectionsection.left[1] = {
FileName = {
provider = get_current_file_name,
condition = buffer_not_empty,
-- acessing properties --
highlight = {color.bg, color.purple},
separator = " ",
-- acessing properties --
separator_highlight = {color.gray, color.gray}
}
}
```#### Tips
- use [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) for better highlight#### Similiar project
- [wal.vim](https://github.com/dylanaraps/wal.vim)#### My setup
- my xresources color is originaly from [uwu.vim](https://github.com/Mangeshrex/uwu.vim)
- my terminal is using alacritty
- font is pragmataPro#### Thanks
- [Glepnir](https://github.com/glepnir)
- [Elianiva](https://github.com/elianiva)
- [Dotfiles indonesia](https://t.me/dotfiles_id)
- [Vim indonesia](https://t.me/VimID)