Code Monkey home page Code Monkey logo

huez.nvim's Issues

Bug: Cannot use HuezLive, but can preview Huez defaults

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.

theme configuration

let users configure themes from within the plugin, preferably without going back to their config

feat: Add option to choose colorscheme using cmdline

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

proposal: use `sqlite.lua` instead of raw files

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

add tests

don't know why I haven't done this yet

Theme Manager

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

suppress messages

let users choose wether or not they want huez to show messages, (could be annoying for some notify-nvim users)

Improve documentation

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 resets color to the default color everytime I try to change it

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,
}

module huez.api not found

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,
}

Current Color Scheme Not Preselected in Picker

First things first: Great plugin!

Description

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!

Error when switching using HuezLive command

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>

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.