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

Support lsp semantic tokens #25

Open
JMarkin opened this issue May 2, 2023 · 1 comment
Open

Support lsp semantic tokens #25

JMarkin opened this issue May 2, 2023 · 1 comment

Comments

@JMarkin
Copy link

JMarkin commented May 2, 2023

Hello, thank you for this colorscheme!

But currently if lsp supported semantic tokens it break some part of this colorscheme.
Examples

LspStart
image

LspStop
image

Currently I added to my config

local links = {
  ['@lsp.type.namespace'] = '@namespace',
  ['@lsp.type.type'] = '@type',
  ['@lsp.type.class'] = '@type',
  ['@lsp.type.enum'] = '@type',
  ['@lsp.type.interface'] = '@type',
  ['@lsp.type.struct'] = '@structure',
  ['@lsp.type.parameter'] = '@parameter',
  ['@lsp.type.variable'] = '@variable',
  ['@lsp.type.property'] = '@property',
  ['@lsp.type.enumMember'] = '@constant',
  ['@lsp.type.function'] = '@function',
  ['@lsp.type.method'] = '@method',
  ['@lsp.type.macro'] = '@macro',
  ['@lsp.type.decorator'] = '@function',
}
for newgroup, oldgroup in pairs(links) do
  vim.api.nvim_set_hl(0, newgroup, { link = oldgroup, default = true })
end

by this https://gist.github.com/swarn/fb37d9eefe1bc616c2a7e476c0bc0316

But may be you want/know better solution.

@ofirgall
Copy link
Owner

ofirgall commented May 3, 2023

Unfortunately LSP semantic tokens isn't supported now. Personally I disable semantic tokens until I would have time to make a full support for 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