Code Monkey home page Code Monkey logo

huez.nvim's Introduction

huez.nvim

This demo shows the persistent, registry/ensure installed and favorites features

huez_demo.mp4

Read the wiki!

If you'd like more indepth information, or confused about something, see the Huez wiki! If you're still having an problem, submit an issue!

Features

  • ๐Ÿฅฑ Uses lazy.nvim as a backend for handling registry operations.
  • ๐Ÿ”ญ Uses telescope.nvim.
  • ๐Ÿ’ฏ Huge registry with 400+ colorschemes, 80+ packages
  • ๐ŸŒ„ Preview installed colorschemes.
  • ๐Ÿ›๏ธ Preview registry colorschemes live without affecting startup times!
  • ๐Ÿ’พ Persistent colorschemes selection through Neovim sessions.
  • ๐ŸŒŸ Mark themes as favorites!
  • ๐Ÿ”Œ Automatic handling of installed colorschemes through the registry!
  • ๐Ÿ”— Customize theme configurations as per your liking!

Requires

lazy.nvim if you plan on using the management aspect. very much still a WIP

telescope.nvim

Installation

-- Lazy
{
    "vague2k/huez.nvim",
    -- if you want registry related features, uncomment this
    -- import = "huez-manager.import"
    branch = "stable",
    event = "UIEnter",
    config = function()
        require("huez").setup({})
    end,
}

Help

To get help use :h huez.txt

Configuration

Huez comes with the following defaults

{
  path = vim.fs.normalize(vim.fn.stdpath("data") --[[@as string]]) .. "/huez",
  fallback = "default",
  suppress_messages = true,
  theme_config_module = nil,
  exclude = { "desert", "evening", "industry", "koehler", "morning", "murphy", "pablo", "peachpuff", "ron", "shine", "slate", "torte", "zellner", "blue", "darkblue", "delek", "quiet", "elflord", "habamax", "lunaperche", "zaibatsu", "wildcharm", "sorbet", "vim", },
  picker = {
    themes = {
      layout = "right",
      opts = {},
    },
    favorites = {
      layout = "right",
      opts = {},
    },
    live = {
      layout = "right",
      opts = {},
    },
    ensured = {
      layout = "right",
      opts = {},
    },
  },
}

License

MIT

huez.nvim's People

Contributors

axzilla avatar cool-pants avatar github-actions[bot] avatar solidsilver avatar vague2k avatar

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

huez.nvim's Issues

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

add tests

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

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

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!!

theme configuration

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

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

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

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>

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!

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.

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.