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

Onedark nordic, visual highlight difficult to see #49

Closed
speri203 opened this issue Mar 24, 2023 · 17 comments
Closed

Onedark nordic, visual highlight difficult to see #49

speri203 opened this issue Mar 24, 2023 · 17 comments
Assignees
Labels
Bug / Poor Colors Something isn't working, unusable or badly designed

Comments

@speri203
Copy link

When highlighting in visual mode the background of what is being highlighted is impossible to see. In the screenshot the ASCI art is highlighted in visual mode its almost impossible to distinguish from the background. Could the highlighting color be changed? If so, what is the procedure to do so?
Screenshot 2023-03-24 at 1 48 13 PM

@AlexvZyl
Copy link
Owner

AlexvZyl commented Mar 24, 2023

Yeah, that looks bad. The Onedark theme was something I quickly experimented with, in an attempt to reduce the overall blue of the Nord palette. It still needs a lot of work.

Here are a few things you can try:

require 'nordic' .setup {
    theme = 'onedark',
    cursorline = {
        theme = 'dark',
    }
}
require 'nordic' .setup {
    theme = 'onedark',
    override = {
        CursorLine = {
            bg = '#000000',  -- Choose a color you like.
            bold = true -- Or false.
        }
    }
}

@AlexvZyl
Copy link
Owner

Please leave this issue open, as this is something that I want to fix.

@AlexvZyl AlexvZyl self-assigned this Mar 24, 2023
@AlexvZyl AlexvZyl added the Bug / Poor Colors Something isn't working, unusable or badly designed label Mar 24, 2023
@speri203
Copy link
Author

Yeah, that looks bad. The Onedark theme was something I quickly experimented with, in an attempt to reduce the overall blue of the Nord palette. It still needs a lot of work.

Here are a few things you can try:

require 'nordic' .setup {
    theme = 'onedark',
    cursorline = {
        theme = 'dark',
    }
}
require 'nordic' .setup {
    theme = 'onedark',
    override = {
        CursorLine = {
            bg = '#000000',  -- Choose a color you like.
            bold = true -- Or false.
        }
    }
}

You were partially correct, it looks like what I was looking for was the "Visual" parameter and not the "CursorLine". I was able to update the visual selection and the end result of the config is as such

return {
  "AlexvZyl/nordic.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("nordic").setup {
      theme = "onedark",
      bold_keywords = true,
      onedark = {
        brighter_whites = true,
      },
      override = {
        Visual = {
          bg = "#3A515D", -- Choose a color you like.,
          bold = false,   -- Or false.,
        },
      },
      noice = {
        style = "flat",
      },
      telescope = {
        style = "flat",
      },
    }
  end,
}

The visual mode selection is now looking like this:
Screenshot 2023-03-24 at 8 16 12 PM

@AlexvZyl
Copy link
Owner

Ah, of course. Apologies for the wrong information, it has been a while since I last worked on the plugin (finishing my thesis). Should start fixing things again quite soon.

@AlexvZyl
Copy link
Owner

AlexvZyl commented Mar 24, 2023

The reason I got confused with CursorLine, is because Visual uses the same color internally. You might still want to keep CursorLine overridden as well.

@AlexvZyl
Copy link
Owner

Since you are the first person (other than me) that opted for the Onedark theme, what is your opinion on the idea?

@speri203
Copy link
Author

speri203 commented Mar 24, 2023

Since you are the first person (other than me) that opted for the Onedark theme, what is your opinion on the idea?

No worries, firstly, good luck with your thesis! I looked through your published papers on GitHub. Most went over my head but it's very interesting.

I did experiment with the CursorLine as well but I find the styling a bit odd. Having the entire row highlighted is not very aesthetically pleasing and presents "redundant" information since the cursor itself is highlighted in bright red. I don't find that having the entire line highlighted gives meaningful information in my personal opinion (illustrated in the screenshot). In my workflow, if I want to make any meaningful change to a block of code then I would like to see what I am performing the action on at a quick glance whereas the cursor is enough information for when I am trying to get to a particular location within the line.
Screenshot 2023-03-24 at 10 44 24 PM

The highlight color I used for the "Visual" mode was pulled from the config of EverForest for testing purposes since I had the palette saved locally. When I get some free time I can utilize the nordic palette to see which makes sense, especially with respect to displaying comments clearly in Visual mode.

@AlexvZyl
Copy link
Owner

No worries, firstly, good luck with your thesis!

Thank you!

I don't find that having the entire line highlighted gives meaningful information in my personal opinion

Now that you mention it, I could add an option that removes the CursorLine highlight.

Since you are the first person (other than me) that opted for the Onedark theme, what is your opinion on the idea?

When I asked this, I was actually referring to the mixing of the Nord and Onedark colors.

@speri203
Copy link
Author

When I asked this, I was actually referring to the mixing of the Nord and Onedark colors.

My fault, I absolutely love the onedark variant. What originally drew me to the onedark + nordic is the fact that the background is slightly darker in color. I have always shied away from nordic because of the overall gray tone that the theme gives off. This onedark implementation is a nice breath of fresh air on nordic in my personal opinion. Also did some messing around with the highlight coloring and found that the red gives a nice contrast between the text/comment color so they are still easily visible.
Screenshot 2023-03-25 at 1 42 47 PM

@AlexvZyl
Copy link
Owner

AlexvZyl commented Jun 25, 2023

Hi @speri203, are you still using this theme? I am considering removing the onedark variant to reduce the maintenance surface for myself.

@speri203
Copy link
Author

speri203 commented Jun 28, 2023 via email

@AlexvZyl
Copy link
Owner

AlexvZyl commented Jul 6, 2023

Keep up the good work and I wish you the best of luck on your thesis defense!

Thank you!

I decided to no longer maintain this theme, but you could this, it's something I am working on:

require 'nordic' .setup {
    swap_backgrounds = true
    cursorline = { theme = 'light' },
}

@speri203
Copy link
Author

speri203 commented Jul 8, 2023 via email

@AlexvZyl AlexvZyl reopened this Jul 10, 2023
@AlexvZyl
Copy link
Owner

Just tested that config on my system, it works. Do you have the latest version?

@speri203
Copy link
Author

speri203 commented Jul 11, 2023 via email

@AlexvZyl
Copy link
Owner

It is swap_backgrounds (plural), not swap_background (singular).

@speri203
Copy link
Author

speri203 commented Jul 11, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug / Poor Colors Something isn't working, unusable or badly designed
Projects
None yet
Development

No branches or pull requests

2 participants