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

Respecting the colour scheme #98

Open
WhyNotHugo opened this issue Jan 3, 2021 · 4 comments
Open

Respecting the colour scheme #98

WhyNotHugo opened this issue Jan 3, 2021 · 4 comments

Comments

@WhyNotHugo
Copy link

semshi introduces too many extravagant colour for me, and I want it to use the theme I've configured instead of its own.

The README mentions g:semshi#simplify_markup. I've tried

let g:semshi#simplify_markup = v:false
let g:semshi#simplify_markup = false
let g:semshi#simplify_markup = '0'

But none of these work -- I still get semshi's builtin theme rather than my usual vim theme.

Any hints on how to actually use this settings? Or is that not the right one?

@ddnomad
Copy link

ddnomad commented Feb 3, 2021

So I've being searching for a proper plugin to highlight my 3.7+ Python code with type annotations, f-strings and other goodness. Came across this project, which sounds pretty nice.

Sadly, a complete disregard to my color scheme is a huge deal breaker for me. From around 8 colors my color scheme defines, it seems like only 2? were left as is. The rest is now a bit over the top to my taste.

I might try putting together a custom color schema but it seems like a lot of work I'm not willing to put in at the moment.

@WhyNotHugo
Copy link
Author

FWIW, I've been using nvim-treesitter, which does rather sophisticated highlighting, but uses the configured theme. If keeping a consistent theme is important, that might be the way to go.

@ddnomad
Copy link

ddnomad commented Feb 9, 2021

FWIW, I've been using nvim-treesitter, which does rather sophisticated highlighting, but uses the configured theme. If keeping a consistent theme is important, that might be the way to go.

Oh interesting, I'll give it a try (and thanks for mentioning it)!

@lkhphuc
Copy link

lkhphuc commented Mar 9, 2023

I defined some highlight links to my colorscheme and put this in an autocommand as suggested in the readme, for anyone interested:

            "use default fg, just add style
            highlight! semshiImported gui=bold,italic 
            highlight! semshiGlobal gui=bold 
            " link to Treesitter
            highlight! link semshiParameter @parameter
            highlight! link semshiParameterUnused @parameter " same color, just add style
            highlight! semshiParameterUnused gui=undercurl. " lsp also provide this
            highlight! link semshiAttribute @attribute
            highlight! link semshiBuiltin @function.builtin
            highlight! link semshiUnresolved @text.warning

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

3 participants