Coder Social home page Coder Social logo

alphatechnolog / pywal.nvim Goto Github PK

View Code? Open in Web Editor NEW
120.0 3.0 25.0 488 KB

pywal.nvim is a reimplementation of pywal.vim to support a few lua plugins like nvim-tree, telescope, bufferline, etc

Lua 99.88% Vim Script 0.12%
nvim pywal reimplementation lualine bufferline telescope lua vim colorscheme theme

pywal.nvim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pywal.nvim's Issues

Tab margin separator doesn't change with margin color

I would like to change the color of the seperations between my tabs in lualine (here in white) and either have them sync with the margin color and size, or at least, make them blend in with lualine background color.

2022-02-04-132402_1268x58_scrot

The reason I'm posting here and not on lualine's github is because I don't see this problem with other color schemes.

My config file:
`
local pywal = require('pywal')

pywal.setup()
`

Generating Engine.

pywal is a nice engine. but there are some others like haishoku and some more.

(Wpgtk)[https://github.com/deviantfero/wpgtk] provides an option to generate a color scheme using different options.

it stores colorschemes in ~/.config/wpg/templates/

there should be an options given to use different color scheme

Neovim : vim.hightlight.create is deprecated

After Neovim update, i obtained this

vim.highlight.create is deprecated, use vim.api.nvim_set_hl instead. See :h deprecated
This function will be removed in Nvim version 0.9
stack traceback:
        /usr/share/nvim/runtime/lua/vim/highlight.lua:14: in function 'hi'
       ~/.config/nvim/plugged/pywal/lua/pywal/highlights.lua:8: in function 'highlight_all'
       ~/.config/nvim/plugged/pywal/lua/pywal/init.lua:8: in function 'setup'
        [string ":lua"]:1: in main chunk

I tried to replace vim.highlight.create with vim.api.nvim_set_hl in highlights.lua but it didn't work.

I use NVIM v0.8.0 on Arch Linux.

colorscheme pywal not found! ERROR

EDIT: I just fixed the error i just had to put use { 'AlphaTechnolog/pywal.nvim', as = 'pywal' } in plugins.lua

Hello im new to nvim so please dont judge me, anyways i was trying to install pywal but i failed with this error:
Error detected while processing /home/khaled/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/khaled/.config/nvim/lua/user/pywal/init.lua:2: module 'pywal.core' not f
ound:
no field package.preload['pywal.core']
no file './pywal/core.lua'
no file '/home/khaled/.config/nvim/neovim/.deps/usr/share/luajit-2.1.0-beta3/pywal/core.lua'
no file '/usr/local/share/lua/5.1/pywal/core.lua'
no file '/usr/local/share/lua/5.1/pywal/core/init.lua'
no file '/home/khaled/.config/nvim/neovim/.deps/usr/share/lua/5.1/pywal/core.lua'
no file '/home/khaled/.config/nvim/neovim/.deps/usr/share/lua/5.1/pywal/core/init.lua'
no file './pywal/core.so'
no file '/usr/local/lib/lua/5.1/pywal/core.so'
no file '/home/khaled/.config/nvim/neovim/.deps/usr/lib/lua/5.1/pywal/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './pywal.so'
no file '/usr/local/lib/lua/5.1/pywal.so'
no file '/home/khaled/.config/nvim/neovim/.deps/usr/lib/lua/5.1/pywal.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/khaled/.config/nvim/lua/user/pywal/init.lua:2: in main chunk
[C]: in function 'require'
/home/khaled/.config/nvim/init.lua:7: in main chunk

Text not showing up in the native statusline/bar

Expected Behavior

Being able to see the text in the native statusline/bar by default.

Current Behavior

I can't see the text in the native statusline/bar, the bar is black.
Either the text isn't rendering or the text is the same color as the bar.

Steps to Reproduce

  1. Make Kitty sources its colors from pywal
  2. Install pywal.nvim via packer or vim-plug
  3. Initialize pywal.nvim without any other plugins or options that could interfere with it.

Context (Environment)

I use Kitty as a terminal emulator, which is already sourcing its colors from pywal.

Editing colors

I am trying to edit the colors for the tree-sitter part of this plugin. My html files are quite bland right now, and I would like to edit the colors so that they look better. I was wondering what I would need to do in order to accomplish that. I tried going into the local repo that was installed in my computer through packer (basically, what is in my .local directory). I see that there is a TSTag = { } that is commented out. I commented it in and specified a color for it (without any error), but it does change anything in the html files.

I am thinking that I need to create a pywal.lua in the .config, but I am not sure where to start and what to do for it. I am not proficient in Lua and I know just enough to a get by slowly for configuring neovim, so any help on how I can accomplish would be appreciated.

Doesn't auto update.

When generating new colorscheme, nvim does not update the colorscheme. I believe wal.vim does that. Could you implement it?

Commented lines and highlight color when pressing 'V' are the same

Thanks for the previous issue ;)

I noticed something else. As you can see below, the highlight color when selecting a line is the same of commented line of text rendering it invisible.

2022-02-08-175538_532x154_scrot

Also, I don't think the following deserves new issues open so I'll ask here:
-Is there a way to color NvimTree background differently?
-Not remove the frame around Telescope?

Thanks again

Error message

vim.highlight.create is deprecated, use vim.api.nvim_set_hl instead. See :h deprecated                     
This function will be removed in Nvim version 0.9                                                          
stack traceback:                                                                                           
        /usr/share/nvim/runtime/lua/vim/highlight.lua:14: in function 'hi'                                 
        ...im/site/pack/packer/start/pywal/lua/pywal/highlights.lua:8: in function 'highlight_all'         
        ...are/nvim/site/pack/packer/start/pywal/lua/pywal/init.lua:8: in function 'setup'                 
        [string ":lua"]:1: in main chunk                                                                   
        [C]: in function 'cmd'                                                                             
        /home/vaskark/.config/nvim/init.lua:7: in main chunk 

My line 7 is:

vim.cmd [[colorscheme pywal]]

I've also set lualine theme to pywal-nvim. But when pywal loads a new theme the colors do not change unless I reload the file in place.

I'm using neovim (git updates ppa) on Ubuntu 22.04.1.
Thanks.

Edit: my nvim config

Edit (again): I went back to the stable release ppa channel and the problem has disappeared. It still doesn't reload automatically when a new pywal theme is loaded, however.

Use of deprecated method

When opening Neovim, the following error appears:

vim.highlight.create is deprecated, use vim.api.nvim_set_hl instead. See :h deprecated
This function will be removed in Nvim version 0.9
stack traceback:
        /usr/share/nvim/runtime/lua/vim/highlight.lua:14: in function 'hi'
        ...l/share/nvim/plugged/pywal.nvim/lua/pywal/highlights.lua:8: in function 'highlight_all'
        .../.local/share/nvim/plugged/pywal.nvim/lua/pywal/init.lua:8: in function 'setup'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

I believe this is in reference to local hi = vim.highlight.create in the file lua/pywal/highlights.lua

Whitespaces (listchars) have the same color of backgroung

Using pywal.nvim colorscheme when vim.opt.list=true is set all listchars of Whitespace highlightning group are invisible. Here's an example:
immagine
immagine

Seems like a problem in pywal colorscheme config, where for Whitespace guifg=colors.background. If I set another color, for example color1 (since other lischars, like eol, use NonText highlightning - see :help listchars) the problem is solved:
immagine

I use wezterm as terminal emulator and nvim v0.6.1 on Arch Linux.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.