vague2k / huez.nvim Goto Github PK
View Code? Open in Web Editor NEWTheme picker/manager, Using the powers of Telescope for the frontend and Lazy.nvim for the backend
License: MIT License
Theme picker/manager, Using the powers of Telescope for the frontend and Lazy.nvim for the backend
License: MIT License
Currently trying to pinpoint what could cause this.
The path
and file names have no changed since 1.0.0 started being written
Installed your plugin like the docs, and when trying to use HuezLive and change some colorscheme, it doesnt show the preview and gives back this error:
E5108: Error executing lua: ...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:215: attempt to index field '_' (a nil value)
stack traceback:
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:215: in function 'clear'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:39: in function 'run'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:81: in function 'install'
...re/nvim/lazy/huez.nvim/lua/huez-manager/api/selected.lua:43: in function 'lazy_flush'
...hare/nvim/lazy/huez.nvim/lua/huez/pickers/live/utils.lua:14: in function 'load_currently_installed'
...re/nvim/lazy/huez.nvim/lua/huez/pickers/live/actions.lua:31: in function 'key_func'
...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:290: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:289>
If u use :Huez it works, i can preview the default ones and select them, but it seems i cant install any, im using Arch and
NVIM v0.10.0-dev-2930+g47ba96a6b3
Build type: RelWithDebInfo
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info
i have telescope installed and using lazy package manager.
through a user command, allow a user to open a specific file in a buffer from the theme_config_module
path
I tinker with themes a LOT and didn't immediately see a way to add custom themes or theme overrides within the plugin - can you confirm if this is supported?
Reading the new documentation, I noticed that there are some commands listed for normal mode, but I'm always in insert and any command to enter normal mode just closes Huez
some hacking may be needed, but playing around with buffer numbers and window numbers could be a good first approach...
let users configure themes from within the plugin, preferably without going back to their config
not really sure why, and i'm tired. Will figure it out later
Similar to :colorscheme
but instead would be :Huez
and cmd args would be colorscheme, respecting the omitted colorschemes and previewing before selection.
Could be a good alternative for those who do not use telescope or vim.ui wrapper plugins
This change (if it takes place) would not affect plugin functionality, but would offer (supposedly) a better DX and more sleek api.
Started and will continue to do research, if I decide to not move forward with this i'll mark this as not planned
This is only an issue when using the telescope picker
don't know why I haven't done this yet
If we maintained a list of themes in a MD/Yaml file
Then the plugin could fit clone the themes down and implement new themes
Questions:
Updates to themes. Maybe a striped version of the way Mason or Lazy works
Do many themes require complicated set up functions. Thinking like cappuccinn flavours etc
If huez handles the download does it handle the loading and configuration too. Perhaps the config file we have also holds info on how to config the colour scheme
If this get's implemented I think it would be worth making it a toggle-able thing?
i guess i'll have to see
let users choose wether or not they want huez to show messages, (could be annoying for some notify-nvim users)
Hey, I'm trying this plugin because I love the idea of change colorschemes from time to time.
I saw it can add a theme to a favourite list, but... how? I'm not able to find the key...
And the Live mode, what is it for? Like to install colorshemes via the UI? It don't work for me.
Thank you for this plugin!!
Huez worked the first time I set up a colorscheme with it but since then whenever I try to change a colorscheme with it it will resort to using the same color that ive first set up immediately after trying to change that color.
Steps to reproduce: this is my current config
return {
event = 'BufWinEnter',
'vague2k/huez.nvim',
dependencies = {
-- You probably already have this installed, highly reccomended you do.
'nvim-telescope/telescope.nvim',
-- If using vim.ui, this plugin will give you a better experience
'stevearc/dressing.nvim',
},
config = function()
require('huez').setup()
local colorscheme = require('huez.api').get_colorscheme()
vim.cmd('colorscheme ' .. colorscheme)
vim.keymap.set('n', '<leader>co', '<cmd>Huez<CR>', {})
end,
}
After I just updated my plugin it stopped working saiying that huez.
This is my setup on nvim 0.9.5 on arch:
return {
event = 'BufWinEnter',
'vague2k/huez.nvim',
dependencies = {
-- You probably already have this installed, highly reccomended you do.
'nvim-telescope/telescope.nvim',
-- If using vim.ui, this plugin will give you a better experience
'stevearc/dressing.nvim',
},
config = function()
require('huez').setup()
local colorscheme = require('huez.api').get_colorscheme()
vim.cmd('colorscheme ' .. colorscheme)
vim.keymap.set('n', '<leader>co', '<cmd>Huez<CR>', {})
end,
}
I'm imagining 1 command being :Huez
which then has subcommands like themes
, live
... etc.
This would be for 2.0.0 since this would be a breaking change.
There is an issue where switching from a light theme to a dark theme causes the dark theme to appear like a light theme.
becuz I wrote the plugin of course ;P
First things first: Great plugin!
When opening the color scheme picker, the currently selected color scheme is not preselected. Instead, the first color scheme in the list (alphabetically ordered) is selected by default.
Take a look at: #15
Thank you!
When attempting to switch plugins using the HuezLive command in Neovim, I encountered the following error:
E5108: Error executing lua: ...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:215: attempt to index field '_' (a nil value)
stack traceback:
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:215: in function 'clear'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:39: in function 'run'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:81: in function 'install'
...re/nvim/lazy/huez.nvim/lua/huez-manager/api/selected.lua:43: in function 'lazy_flush'
...hare/nvim/lazy/huez.nvim/lua/huez/pickers/live/utils.lua:14: in function 'load_currently_installed'
...re/nvim/lazy/huez.nvim/lua/huez/pickers/live/actions.lua:31: in function 'key_func'
...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:293: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:292>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.