GithubHelp home page GithubHelp logo

blazkowolf / gruber-darker.nvim Goto Github PK

View Code? Open in Web Editor NEW
87.0 2.0 22.0 62 KB

Neovim Lua port of gruber-darker-theme

License: MIT License

Lua 100.00%
colorscheme lua neovim neovim-plugin neovim-colorscheme neovim-theme nvim nvim-colorscheme nvim-plugin nvim-theme

gruber-darker.nvim's Introduction

gruber-darker.nvim

A modern Neovim port of a deftheme adaptation of an Emacs port of a BBEdit colorscheme

Note This is a work in progress, but fairly stable

image

Installation

Lazy (recommended)

{ "blazkowolf/gruber-darker.nvim" }

Packer

use "blazkowolf/gruber-darker.nvim"

Plug

Plug 'blazkowolf/gruber-darker.nvim'

Then, somewhere in your init.lua, set the colorscheme

vim.cmd.colorscheme("gruber-darker")

Configuration

Defaults

{
  bold = true,
  invert = {
    signs = false,
    tabline = false,
    visual = false,
  },
  italic = {
    strings = true,
    comments = true,
    operators = false,
    folds = true,
  },
  undercurl = true,
  underline = true,
}

With updated preferences

Change configuration options by calling setup() prior to loading the colorscheme. Your preferences will be merged with the defaults.

For example, with Lazy...

{
  "blazkowolf/gruber-darker.nvim",
  opts = {
    bold = false,
    italic = {
      strings = false,
    },
  },
}

Credits

These repositories were great knowledge sources and their inspiration helped immensely with the development of this plugin.

gruber-darker.nvim's People

Contributors

0xfraso avatar blazkowolf avatar ifdiego 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

Watchers

 avatar  avatar

gruber-darker.nvim's Issues

opts doesn't work as config option in lazy

something is wrong when i use opt in lazy.nvim

{
  "blazkowolf/gruber-darker.nvim",
  opts = {
    bold = false,
    italic = {
      strings = false,
    },
  },
}

but the:

{
  "blazkowolf/gruber-darker.nvim",
  config = function()
      require('gruber-darker').setup({
        "blazkowolf/gruber-darker.nvim",
        opts = {
          bold = false,
          italic = {
            strings = false,
          },
        },
      })
  end,
}

Overriding default coloracheme settings

Hi, i've installed ur colorscheme via packer and i'm trying to disable italics with this code in my init.lua

require("gruber-darker").setup ({
    opts = {
    bold = false,
    italic = {
      strings = false,
      comments = false,
    },
  },
})

but nothing changes, i really hope u'll answer because i find this theme very good and i don't want to change it

Suggestion change background color on hover

Hey,

I've been using this color, it's great, but I have a suggestion: change the background color on LSP hover to look like the same color as the vimdoc.

Example:
Here's how the default looks like in my neovim:
one
Both backgrounds are the same color, which may be difficult to read.

And here's my suggestion:
two

I think it looks better for reading with a darker background, but I'm not sure if could be changed here or just a personal modification in my own config.

It looks like I just need to change highlight NormalFloat to achieve that.
Maybe if it's ok, I could make a pull request.

Conflicting with { "mg979/vim-visual-multi" }

Dear blazkowolf -- I really love your Gruber implementation -- just one thing I have a trouble with ... I am using Lunavim and
it's default colorscheme, and the vim-visual-multi plugin shows the correct cursor color. For some reason, this does not work
with your theme. This would be a great fix in my opinion. I would like to switch to yours. Cheers, Stephan

How to change the cursor color?

Hello, I would like to change the cursor color. How can I do that? I installed the plugin using Lazy:

return {
  "blazkowolf/gruber-darker.nvim",
  name = "gruber-darker",
  opts = {},
}

I'm sorry if the question was very silly, I'm not familiar with Lua very well. Thank you for your interesting project.

Suggestion: easier highlight group overriding

Hi!
First of all, thank you for keeping this awesome colorscheme alive in modern Neovim, it looks fantastic!

I'm finding it a bit awkward to override highlight groups, however. For simplicity, I would like to be able to use your palette similar to other themes like tokyonight:

local c = require('gruber-darker.palette')
vim.api.nvim_set_hl(0, 'Cursor', { bg = c.wisteria })

but your current API requires me to do this instead:

local c = require('gruber-darker.palette')
vim.api.nvim_set_hl(0, 'Cursor', { bg = c.wisteria:to_string() })

Obviously this isn't a huge issue for overriding a few groups but it becomes quite cumbersome for setting lots of them - such as adding support for other plugins.

My current workaround looks something like this:

local c = setmetatable({}, {
  __index = function(_, k)
    return require('gruber-darker.palette')[k]:to_string()
  end,
})
vim.api.nvim_set_hl(0, 'Cursor', { bg = c.wisteria })

which is a bit hacky, but it works fine for my purposes.

I understand that this is very minor - it definitely doesn't detract from my experience using this colorscheme!
Cheers :)

Bold `Statement` by default?

Hi!

I've just tried this colorscheme and have a very small problem. Take the following C code as an example:

demo

Some keywords are bold while others are not, that seems a little bit weird to me. And I believe it was because Statement's are not default to bold.

---(preferred) any statement
M.highlights.statement = Highlight.new("Statement", { fg = c.yellow })
---If, then, else, endif, switch, etc.
M.highlights.conditional = Highlight.new("Conditional", { link = gruber_hl.yellow_bold })
---For, do, while, etc.
M.highlights.repeats = Highlight.new("Repeat", { link = gruber_hl.yellow_bold })
---Case,, etc.
M.highlights.label = Highlight.new("Label", { link = gruber_hl.yellow_bold })

I'm not sure if such setting is intentional or not, but i think it would be nice to have all keywords highlighted in a consist way.

Thanks!

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.