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

[QUESTION] How to properly set colors in Neovim? #2480

Closed
ruyrocha opened this issue Aug 23, 2024 · 2 comments
Closed

[QUESTION] How to properly set colors in Neovim? #2480

ruyrocha opened this issue Aug 23, 2024 · 2 comments
Labels
bug Something isn't working help-wanted Extra attention is needed non-vscode

Comments

@ruyrocha
Copy link

Description

Reproduction steps

Hello, I'm using it with Neovim 0.10 and the colors look a bit odd:

Image

So how can I set the colors instead of that black background? Is there anything I need to modify to make it use theme colors?

  1. Start the Ruby LSP using a certain editor
  2. Open a Ruby file
  3. Do something
  4. See unexpected behavior

Code snippet or error message

@ruyrocha ruyrocha added bug Something isn't working help-wanted Extra attention is needed non-vscode labels Aug 23, 2024
@KaanOzkan
Copy link
Contributor

KaanOzkan commented Aug 23, 2024

This is a configuration on the LSP client you use in neovim and not set by the Ruby LSP server.

I think what you're looking for is :help hl-Pmenu. So you could do something like highlight Pmenu ctermbg=none but I'm not sure. A neovim subreddit/stackoverflow could be a better resource. Also :help highlight.

@ruyrocha
Copy link
Author

Thank you so much, @KaanOzkan 🎆

Image

The image above relates to the following section for catppuccin neovim theme:

custom_highlights = function(colors)
        return {
          -- ColorColumn = { bg = colors.flamingo },
          Pmenu = { bg = colors.mantle, fg = colors.overlay2 },
          PmenuSel = { bg = colors.surface1, style = { "bold" } }, -- Popup menu: selected item.
          PmenuSbar = { bg = colors.surface1 },                    -- Popup menu: scrollbar.
          PmenuThumb = { bg = colors.overlay0 },                   -- Popup menu: Thumb of the scrollbar.
          NormalFloat = { bg = colors.crust, fg = colors.text },
        }
      end,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help-wanted Extra attention is needed non-vscode
Projects
None yet
Development

No branches or pull requests

2 participants