Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: colors.terminal_black and colors.fg_dark are not set properly #18

Open
3 tasks done
phongnh opened this issue Feb 18, 2024 · 0 comments
Open
3 tasks done

bug: colors.terminal_black and colors.fg_dark are not set properly #18

phongnh opened this issue Feb 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@phongnh
Copy link

phongnh commented Feb 18, 2024

Did you check docs and existing issues?

  • I have read all the solarized-osaka.nvim docs
  • I have searched the existing issues of solarized-osaka.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.5

Operating system/version

Sonoma 14.3.1

Describe the bug

I'm using https://github.com/craftzdog/solarized-osaka.nvim with https://github.com/lambdalisue/glyph-palette.vim.

glyph-palette.vim assumes that if g:terminal_color_0 exists, other colors exist too (color: 0-15).

With this default setup, g:terminal_color_7 and g:terminal_color_8 variables are missing because colors.terminal_black and colors.fg_dark are not set properly and they return nil on setup.

require("solarized-osaka").setup({})

I'm not sure this behavior maybe affect to other highlighting function or not.

image

Steps To Reproduce

Just start nvim with default solarized-osaka setup.

Expected Behavior

I think g:terminal_color_7 and g:terminal_color_8 variables should be set.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "craftzdog/solarized-osaka.nvim",
  "lambdalisue/glyph-palette.vim",
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("solarized-osaka")
-- add anything else here
@phongnh phongnh added the bug Something isn't working label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant