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

reactive.nvim breaks custom_highlights for CursorLineNr in normal mode #818

Open
ad-on-is opened this issue Jan 7, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ad-on-is
Copy link

ad-on-is commented Jan 7, 2025

Description

Adding reactive.nvim integration breaks the custom highlights set for CursorLineNr

image
works for visual mode
image

Neovim version

NVIM 0.10.3

Terminal and multiplexer

all

Catppuccin version / branch / rev

latest

Steps to reproduce

{ "rasulomaroff/reactive.nvim", opts = { load = { "catppuccin-mocha-cursorline", "catppuccin-mocha-cursor" } } },
-- Catppuccin custom_highlights
custom_highlights = function(C)
return {
CursorLineNr = { fg = C.peach },
}
end

Expected behavior

CursorLineNr fg should be preserved in normal mode

Actual behavior

CursorLineNr set to what seems to be color.text

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 = {
  "catppuccin/nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("catppuccin")
-- add anything else here
@ad-on-is ad-on-is added the bug Something isn't working label Jan 7, 2025
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