bluz71 / vim-nightfly-colors

A dark midnight theme for modern Neovim & classic Vim
MIT License
828 stars 51 forks source link

Added option to modify colors directly on scheme #59

Closed matheustavarestrindade closed 5 months ago

matheustavarestrindade commented 6 months ago

Hello!

I'm editing some colors in my theme and noticed the difficulty in changing all highlight groups manually. To simplify this, I implemented a feature that allows changing the main theme colors easily:

local theme          = require("nightfly")

theme.palette.bg     = "#161616"
theme.palette.violet = "#ff74b8"

vim.cmd [[colorscheme nightfly]]

It's just a sugestion! fell free to deny or approve :)

bluz71 commented 6 months ago

I need to think about this.

I do not like how this uglifies the internals of the colorscheme for Neovim, and I usually prefer to have equalisation of behaviour between Neovim and standard Vim.

Let me contemplate.

bluz71 commented 5 months ago

Ok, I have implemented color customization (Neovim only), see here.

In your case (first post of this PR) it would look like this:

  require("nightfly").custom_colors({
    bg = "#161616",
    violet = "#ff74b8",
  })
  vim.cmd([[colorscheme nightfly]])

Sorry I took so long, my PC developed problems and I needed to devote a couple weeks buying parts and building a new machine; time consuming, but worth it since I now have a much faster and quieter machine (with an NVME disk for super-fast Neovim use).

Best regards.

matheustavarestrindade commented 5 months ago

Awesome! thanks.