svrana / neosolarized.nvim

Truecolor solarized theme for neovim in Lua using colorbuddy
Other
158 stars 35 forks source link

Treesitter highlights #14

Closed svrana closed 1 year ago

svrana commented 1 year ago

Mostly ripped from: https://github.com/ishan9299/nvim-solarized-lua, which is quite good by the way. Still needs some modifications and I'm not sure about the function parameter colors (orange) and the code actions have changed from subtle to too bright, so need to fix that. But thinking something close to this will go in.

svrana commented 1 year ago

code actions is bizarre. They seem to be highlighted with the WarningMsg highlight group, which I've set to bold orange in the PR above.. I could change that but if used by something else, well, it might not be what you expect. For now, I'm keeping WarningMsg orange and customizing it for myself. i.e., in my init.lua I have

n = require('neosolarized').setup()
n.Group.link('WarningMsg', n.groups.Comment)
svrana commented 1 year ago

This is nearing completion at least for the languages I've tried it on (nix, golang, lua, vimscript, typescript).

I'm on the fence about the parameter highlighting. In the patch they are orange. To change it back to normal text:

n = require('neosolarized').setup()
n.Group.new('@parameter", n.groups.Normal)

Not sure it matters what the default is too much; the point of this plugin is that it's easy to change the defaults, but I'd still like to roll with sensible defaults.

Would love some feedback here as this will change how your code looks if you use this plugin!

Here's a sample in some go code:

image