jellybeans.vim icon indicating copy to clipboard operation
jellybeans.vim copied to clipboard

Support Treesitter highlight groups

Open ilAYAli opened this issue 3 years ago • 8 comments

Support for Treesitter highlight groups would be much appreciated:

TSError
TSPunctDelimiter
TSPunctBracket
TSPunctSpecial
TSConstant
TSConstBuiltin
TSConstMacro
TSStringRegex
TSString
TSStringEscape
TSCharacter
TSNumber
TSBoolean
TSFloat
TSAnnotation
TSAttribute
TSNamespace
TSFuncBuiltin
TSFunction
TSFuncMacro
TSParameter
TSParameterReference
TSMethod
TSField
TSProperty
TSConstructor
TSConditional
TSRepeat
TSLabel
TSKeyword
TSKeywordFunction
TSKeywordOperator
TSOperator
TSException
TSType
TSTypeBuiltin
TSStructure
TSInclude
TSVariable
TSVariableBuiltin
TSText
TSStrong
TSEmphasis
TSUnderline
TSTitle
TSLiteral
TSURI
TSTag
TSTagDelimiter
TSNone
TSQueryLinterError

ilAYAli avatar Feb 03 '21 09:02 ilAYAli

plus LspReferenceRead, LspReferenceWrite, LspReferenceText

onsails avatar Feb 08 '21 17:02 onsails

Another developer has ported Jellybeans to Treesitter: https://github.com/metalelf0/jellybeans-nvim

markstos avatar Apr 06 '21 16:04 markstos

I second this request. The referenced port has no TS support.

naquad avatar Feb 16 '22 17:02 naquad

To anyone here, https://github.com/ThemerCorp/themer.lua has added support for jellybeans a while ago.

I'm using it and is working very well! It has already integration with most of the popular plugins out there (e.g. Treesitter, LSP, Telescope, Lualine, etc) and is really easy to override some colors for personal preference. Just setup it with jellybeans colorscheme and you are done!

For example, I override some colors to have a darker PMenu (which is also used by nvim-cmp), which in my opinion looks nicer.

bellini666 avatar Feb 16 '22 17:02 bellini666

@bellini666 could you please show a screenshot of your theme?

naquad avatar Feb 16 '22 17:02 naquad

@naquad sure! Here are some examples, with python and lua code (obs. the PMenu from the completion in one of them is the one I override for customization. The rest is directly from themer)

Screenshot from 2022-02-16 16-44-35 Screenshot from 2022-02-16 16-43-34 Screenshot from 2022-02-16 16-43-22

bellini666 avatar Feb 16 '22 19:02 bellini666

I compared the highlighting this jellybeans colorsceme to themer_jellybeans. There some minor differences.

The most obvious is the highlight column used to color the 100th column. There is another differences which might be due to treesitter-related colorining. Notice that b:dispatch and test#strategy have changed colors

With jellybeans theme

image

With themer_jellybeans

image

markstos avatar Feb 17 '22 15:02 markstos

I submitted a PR to fix the ColorColumn difference and a visual select difference in Themer, but also found a couple other differences with it:

https://github.com/ThemerCorp/themer.lua/pull/58

markstos avatar Feb 17 '22 15:02 markstos