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

Colors for lsp saga #176

Open
noisyBrain opened this issue Jul 2, 2023 · 4 comments
Open

Colors for lsp saga #176

noisyBrain opened this issue Jul 2, 2023 · 4 comments

Comments

@noisyBrain
Copy link

Hi! First of all, thanks for this great theme. It's my favorite!

I'd like to know how to change colors for lspsaga, like borders (instead gray, I'd like to be cyan, etc).
Attach a screen.
lspsaga_hover
lspsaga_hover_notwork

This is an example when I open up hover_doc is different (and quite ugly) to show_inline_diagnostics

@yochem
Copy link

yochem commented Oct 22, 2023

Here are the hl group names: https://github.com/nvimdev/lspsaga.nvim/blob/28051f1be64c85aaeb9272de072cd9a13dfa5150/lua/lspsaga/highlight.lua#L7-L53

@noisyBrain
Copy link
Author

Thanks!
I've seen them, but how can I override them in my local config?

@yochem
Copy link

yochem commented Oct 24, 2023

You could try doing it using onedark's setup function:

require('onedark').setup({
    highlights = {
        SagaTitle = { fg = 'red', bg = '$cyan' }
    }
})

If that does not work, you can do it yourself using nvim's api:

vim.api.nvim_set_hl(0, 'SagaTitle', { fg = 'red', bg = '<cant use onedarks variables here>' })

Of course, this could go in your init.lua file (or another sourced lua file).

@noisyBrain
Copy link
Author

Thanks a lot! I'll try it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants