neanias / everforest-nvim Goto Github PK
View Code? Open in Web Editor NEWA Lua port of the Everforest colour scheme
A Lua port of the Everforest colour scheme
It would be nice to be able to override specific colors via the config table, e.g.:
require("lazy").setup({
"neanias/everforest-nvim",
version = false,
lazy = false,
priority = 1000, -- make sure to load this before all the other start plugins
-- Optional; default configuration will be used if setup isn't called.
config = function()
require("everforest").setup({
-- Your config here
palette = {
bg0 = "#000000"
}
})
end,
})
Opening a PR soon.
Is it possible to add a transparent background option to the configuration?
With the theme configured as "medium" and with the transparent_background_level
as 0 the gitgutter and lsp signs seem to have a different background. Am I configuring something wrong?
If I make the transparent_background_level
then it all matches but I'd prefer not to use the transparent background.
I would like to be able to have a slightly transparent background instead of all or nothing. Is this something that can be reasonably added to the plugin?
Hi there,
I am currently using the LazyVim distro and currently trying to enable a transparent background on the theme, but I'm a bit lost at the moment. Would you be able to help me out?
This is what I've tried so far:
return {
{
"neanias/everforest-nvim",
config = function()
require("everforest").setup({
transparent = true,
})
end,
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "everforest",
},
},
}
If I don't supply my own highlight group for hl.StatusLineNC
I get this:
Anytime I use a fuzzy find or open a split.
{
"neanias/everforest-nvim",
version = false,
lazy = false,
priority = 1000, -- make sure to load this before all the other start plugins
-- Optional; default configuration will be used if setup isn't called.
config = function()
require("everforest").setup({
-- Your config here
background = "soft",
transparent_background_level = 2,
italics = true,
on_highlights = function(hl, palette)
hl.StatusLineNC = { fg = palette.none, bg = palette.none, sp = palette.red }
end,
})
end,
},
I'm not sure why this is happening (on latest Neovim Nightly) but it looks like its related to the highlight groups being the same.
nordtheme/vim#37
Thought I would report in case other have issues with the workaround above.
Hello,
Recently, I've migrated the terminal emulator from iTerm2 to kitty and faced a minor issue regarding transparency.
As shown above, nvim tree's background is transparent which is not the desired behaviour.
I want to set the terminal transparent but not neovim so I have set background_opacity 0.85
from kitty.conf
and not set the transparent_background_level
to 1 or 2.
I tried :hi NvimTreeNormal
and it says NvimTreeNormalxxx guifg=#d3c6aa guibg=#1e2326
normally. So I also tried :hi NvimTreeNormal guibg=#123456
with random colour, and it worked but only the default colour (#1e2326) seems not to be working.
And thanks a lot for the colorscheme! I'm really enjoying it :)
I'd like to change some highlights style by overriding them, I have tried to put style = "bold
in the highlights group, but it didn't work. After looking at the source code, I guess it might be stylings
instead of style
like below:
config = function()
require("everforest").setup({
on_highlights = function(hl, palette)
hl.Boolean = { stylings = { "bold" } }
hl.Number = { stylings = { "bold" } }
hl.String = { stylings = { "bold" } }
hl.Function = { stylings = { "bold" } }
hl.Conditional = { stylings = { "bold" } }
end,
})
end,
But it didn't work either, so how can I change the style?
Is there a function to easily get the current palette's colors? For example, with catppuccin
, there's the get_palette
function:
local flavor = vim.g.catppuccin_flavour
local C = require("catppuccin.palettes").get_palette(flavor)
And then you can easily retrieve a color's hex value:
local green = C.green
I want to override the Lualine A section to use the highlight fg and bg of Lualine C. Am I getting the highlight group correctly in the code below
on_highlights = function(highlight_groups, palette)
highlight_groups.lualine_a_normal =
{ bg = palette.bg1, fg = palette.grey1 }
end,
I am running into an issue attempting to use the everforest
theme in lualine
. If I just set `theme = "everforest" in the lualine setup options as suggested by the README, lualine complains that it doesn't know about the everforest theme and falls back to "auto".
I then copied lua/lualine/themes/everforest.lua
from this repository to my neovim cconfig as lua/themes/lualine/everforest.lua
and in my lualine config did:
theme = require("themes.lualine.everforest")
This produced the following error:
๏ Error 04:58:08 PM notify.error lazy.nvim Failed to run `config` for lualine.nvim
...e/.config/nvim-lazyman/lua/themes/lualine/everforest.lua:12: attempt to index local 'palette' (a nil value)
# stacktrace:
- everforest.lua:12
- ~/.config/nvim-lazyman/lua/config/lualine.lua:20
- ~/.config/nvim-lazyman/lua/plugins/ui.lua:135 _in_ **config**
- /tabline.nvim/lua/tabline.lua:841 _in_ **setup**
- ~/.config/nvim-lazyman/lua/config/tabline.lua:1
- ~/.config/nvim-lazyman/lua/plugins/ui.lua:143 _in_ **config**
My setup is somewhat convoluted as I am supporting multiple themes and multiple neovim configurations so it is entirely possible the issue is on my end. But, I like everforest and I am glad there is a lua implementation so I wanted to inform you of this potential issue with the lualine support.
The good news is that lualine's "auto" support for everforest is very good. So for now I am just using theme = "auto"
in my lualine config for everforest.
It appears that neovim 0.10 did something about highlight groups
https://github.com/neovim/neovim/blob/42aa69b076cb338e20b5b4656771f1873e8930d8/runtime/doc/news-0.10.txt#L25-L36
โข This also might result into some color schemes looking differently due to them relying on implicit assumptions about how highlight groups are defined by default. To account for this, define all attributes of highlight groups explicitly. Alternatively, use `:colorscheme vim` or `:source $VIMRUNTIME/colors/vim.lua` to restore previous definitions.
and this has caused some issues
https://github.com/neovim/novim/issues/29013
For my usecase, mini.diff
was not using the right colors in sign column because:
everforest-nvim/lua/everforest/highlights.lua
Line 1298 in ed4ba26
mini.diff
falls back to Added
instead of GitAdded
in neovim >= 0.10 https://github.com/echasnovski/mini.diff/blob/441975a43bbec22442a91fe2ab1c7c06984e4d8a/lua/mini/diff.lua#L1005-L1007I've solved by linking the new highlights, but maybe there is a better solution
hl.Added = { link ="DiffAdded" }
hl.Changed = { link ="DiffChanged" }
hl.Removed = { link ="DiffRemoved" }
First of all thank you for the plugin. Since finding it i've not switched coloscheme, it is soo good so congratulations.
I'm opening this issue because since the latest updates to match the new treesitter tags (or so it seems with your latest commits) the packages in golang have the same color as the types and it's a bit annoying, previously packages were white.
Would it be possible to set it up with a different color? is this change intented or it's a bug? If it's intented would you help me override it in my config? i've tried overriding it with the "on_highlights" config in the setup but i couldn't make it work.
Again thanks for the theme and the maintainance!
I tried several variations of this:
require("everforest").setup({
on_highlights = function (hl, palette)
hl.CursorLine = { fg = palette.none, bg = palette.bg0, sp = palette.red }
end
})
What's the correct way of doing this?
Hi there,
First of all the theme is awesome! So, is just a basic question, is there a way to set italic only for strings? Something like gruvbox theme?
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.