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

Recent updates to treesitter cause everything to be 'glacier' #143

Open
tomit4 opened this issue Apr 13, 2023 · 8 comments
Open

Recent updates to treesitter cause everything to be 'glacier' #143

tomit4 opened this issue Apr 13, 2023 · 8 comments

Comments

@tomit4
Copy link

tomit4 commented Apr 13, 2023

nord_issue
nord_issue

I don't know if this is something you can fix, but as soon as my linter turns on, all that was previously white is now converted to the glacier blue. The contrast makes it hard to read my code. I love your theme, could you please help?

Here's my neovim config if that helps:

https://github.com/tomit4/notes/tree/main/.config/nvim

Thanks for any help you can possibly give in advance.

@shaunsingh
Copy link
Owner

Thanks, I'll fix it

@folliehiyuki
Copy link

This is caused by LSP semantic highlight groups (not set by nord.nvim) override the defined treesitter groups (as they have higher priority).

Related to #134.

@ZakariaBouzouf
Copy link

The same here !

@mvsrgc
Copy link

mvsrgc commented Apr 20, 2023

Same
image

@tomit4
Copy link
Author

tomit4 commented Apr 20, 2023

Hi all. Just fyi, I was able to find a temporary solution to this problem. Apparently Neovim's latest update to 0.9.0 includes using LSP semantic tokens (I only know about them because I posted a quickly closed issue on the official Neovim official github issues board). They didn't solve the problem for me but simply told me to type :h lsp-semantic_tokens.

I also browsed around on reddit and found this lua snippet that turns LSP semantic tokens off and returned my colors to their original state. Hopefully this helps until this theme includes them? It is also possible this is an issue with treesitter, but I uninstalled treesitter while troubleshooting and the problem persisted.

`
-- turns off LSP semantic tokens by default
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
client.server_capabilities.semanticTokensProvider = nil
end,
})
``

@KubaBaniak
Copy link

Same problem here

Code snippet from @tomit4 fixed this.

@azthec
Copy link

azthec commented Oct 17, 2023

I have a similar issue and I have not been able to fix this with the snippet above, it is specific to this theme as I checked.

image image

@shaunsingh
Copy link
Owner

I'll try to add semantic token support to fix the issue, thanks for letting me know and sorry for the delay

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

7 participants