Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlphaTechnolog/pywal.nvim
pywal.nvim is a reimplementation of pywal.vim to support a few lua plugins like nvim-tree, telescope, bufferline, etc
https://github.com/AlphaTechnolog/pywal.nvim
autogeneration bufferline colors colorscheme lua lualine nvim palette pywal reimplementation telescope theme vim
Last synced: about 1 month ago
JSON representation
pywal.nvim is a reimplementation of pywal.vim to support a few lua plugins like nvim-tree, telescope, bufferline, etc
- Host: GitHub
- URL: https://github.com/AlphaTechnolog/pywal.nvim
- Owner: AlphaTechnolog
- Archived: true
- Created: 2022-01-06T14:44:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T20:32:20.000Z (almost 2 years ago)
- Last Synced: 2024-07-12T02:45:46.041Z (about 2 months ago)
- Topics: autogeneration, bufferline, colors, colorscheme, lua, lualine, nvim, palette, pywal, reimplementation, telescope, theme, vim
- Language: Lua
- Homepage:
- Size: 477 KB
- Stars: 118
- Watchers: 3
- Forks: 27
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pywal.nvim
Pywal.nvim is a reimplementation of [pywal.vim](https://github.com/dylanaraps/wal.vim)
wrote totally in lua, with support for a few nvim lua pluginsIt's a reimplementation of wal.vim but wrote in lua, it is the best choice if you want to use a configured neovim with plugins totally writted in lua like Telescope or NvimTree, that aren't supported by default in wal.vim, another example of the real usage of pywal.nvim is in the case you want use lualine, lualine require the termguicolors enabled, but wal.vim doesn't support it, pywal.nvim in contrast, enable it by default because pywal.nvim doesn't ctermbg and ctermfg, it's only for termguicolors.
## Screenshots
![01](./.screenshots/01.png)
![02](./.screenshots/02.png)## External Plugin Support
- Telescope
- Nvim Tree
- Tresitter
- Lsp
- Lsp saga
- Coc
- Bufferline
- Illuminate
- Diff
- Git signs
- Git gutter
- Lualine
- Feline
- Ident-BlankLine## Installation
You can install this plugin with packer:
```lua
use { 'AlphaTechnolog/pywal.nvim', as = 'pywal' }
```Or with vim-plug:
```vim
Plug 'AlphaTechnolog/pywal.nvim', { 'as': 'pywal' }
```## Active theme
To active the theme call this in your neovim config:
```lua
local pywal = require('pywal')pywal.setup()
```Or with vim script:
```vim
colorscheme pywal
```> It will set automatically the `vim.opt.termguicolors` to true
## Activating lualine theme
Place this in your lualine config:
```lua
local lualine = require('lualine')lualine.setup {
options = {
theme = 'pywal-nvim',
},
}
```## Activating the feline theme
You can put this to your config to activate the feline config:
```lua
local present, feline = pcall(require, 'feline')if not present then
return
endlocal present, pywal_feline = pcall(require, 'pywal.feline')
if not present then
return
endfeline.setup({
components = pywal_feline,
})
```Then you will see the feline bar working successfully
## Using the core to get the colors
If you want to get the colors into a lua dictionary
```lua
local pywal_core = require('pywal.core')
local colors = pywal_core.get_colors()
```## How it works
Pywal automatically generate a file called `colors-wal.vim` in `~/.cache/wal/colors-wal.vim`,
it file contains all the colors that are necesary to works for vim, it files looks
like this:```vim
" Special
let wallpaper = "/home/user/Pictures/winter-purple.jpg"
let background = "#110914"
let foreground = "#e3cfe2"
let cursor = "#e3cfe2"" Colors
let color0 = "#110914"
let color1 = "#A378B6"
let color2 = "#B687AD"
let color3 = "#D9A2AF"
let color4 = "#F8DDAD"
let color5 = "#AD90CF"
let color6 = "#D2ACD6"
let color7 = "#e3cfe2"
let color8 = "#9e909e"
let color9 = "#A378B6"
let color10 = "#B687AD"
let color11 = "#D9A2AF"
let color12 = "#F8DDAD"
let color13 = "#AD90CF"
let color14 = "#D2ACD6"
let color15 = "#e3cfe2"
```The theme only reads it files variables and then create a colors dictionary to create
a theme based in it's colors## Enjoy
If you like this and my work you can give me a star :)