-
I was looking to learn rust and got rustlings installed and ready to go. Opened the files within NeoVim after installing some basics and get my syntax highlighting. However, after installing rust-analyzer syntax highlighting is gone - literally no colors just comment highlights (everything grey). I assumed this was the semantic tokes stuff that is talked about in various places so I added this to my config: for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
vim.api.nvim_set_hl(0, group, {})
end But this did nothing. Then I noticed that if I run the Then after trying to get it working on opening a file I also noticed that it does show highlighting when initially opening the file, and then while the LSP is loading it goes away. See below gif: Interestingly enough then when I go into insert mode, and then make a small change (insert a line, add a space - something small) it comes back again. Strange. But then going back to normal mode it goes away again. Would really appreciate some help figuring this one out 😂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you run |
Beta Was this translation helpful? Give feedback.
Did you run
rustlings lsp
?