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

BREAKING CHANGES #79

Open
rebelot opened this issue Oct 20, 2022 · 2 comments
Open

BREAKING CHANGES #79

rebelot opened this issue Oct 20, 2022 · 2 comments

Comments

@rebelot
Copy link
Owner

rebelot commented Oct 20, 2022

@rebelot rebelot pinned this issue Oct 20, 2022
@rebelot
Copy link
Owner Author

rebelot commented Oct 20, 2022

TreeSitter captures as highlight group names

This update uses TS captures as hl-group names and requires nvim >= 0.8 or it will result in the error W18: Invalid character in group name

If, for any reason you cannot upgrade, you can pin a working commit, e.g:

-- using packer
use({ 'rebelot/kanagawa.nvim', commit = 'fc2e308' })

LIParadise added a commit to LIParadise/home_dir that referenced this issue Oct 20, 2022
jhthorsen added a commit to jhthorsen/dotfiles that referenced this issue Nov 18, 2022
  kanagawa.nvim: git checkout fc2e308
@rebelot
Copy link
Owner Author

rebelot commented Mar 4, 2023

Overhaul

  • removed options variablebuiltinStyle, specialReturn, and specialException as they can be trivially modified using overrides with the corresponding TS captures.
  • config.overrides option is now a function which accepts colors as first and only argument. colors will be a table with palette and theme fields.
  • require'kanagawa.colors'.setup() now returns a table with fields palette and theme.

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

1 participant