nordtheme / vim

An arctic, north-bluish clean and elegant Vim theme.
https://www.nordtheme.com/ports/vim
MIT License
2.52k stars 275 forks source link

Weird Syntax Highlighting for neovim #319

Closed lil-skelly closed 2 years ago

lil-skelly commented 2 years ago

I installed the vim plugin for neovim using vim-plug as the plugin manager. When I set the color scheme to nord I get a completly different color scheme than the default one that the docs show. I also use the lightline plugin and it also gets styled with that weird color scheme. I removed and re-installed neovim and nord, but same results.

(Also some languages such as go are not highlighted)

Here is a photo of how it looks results that i get

lil-skelly commented 2 years ago

Its weird, that I copied the nord.vim file directly from this repository, and added it in my themes folder and setted it as the colorscheme (Had removed the nord plugin first to avoid problems). Same thing . . . Seems that with nord.nvim it gives me the syntax highlighting and colorscheme in general that the docs showed.

svengreb commented 2 years ago

Hi @CopernicusPY :wave:

Like mentioned in the Reddit post (just to give some context for others reading this issue) my guess about an invalid local setup seem to be correct. The blue box at the top of Nord Vim's "Installation & Activation" guide informs that the matching terminal theme must be present because Vim uses the 16 ANSI base colors provided by the terminal in which it is running. Based on your screenshot (by the way, you can simply upload images & videos directly to most content fields on GitHub) this doesn't seem to be the case. Since you haven't provided any additional information about your system I can't recommended a specific Nord port so please make sure to check if you terminal is supported through any of Nord's official ports or, if not, maybe a port created by the community.

The answer to why the Neovim specific theme port works is also simple (and partly answered in the Reddit thread): This theme is for "Vanilla" Vim while Neovim is not supported explicitly but only when it runs Vim specific plugins. The fact that it "just works" without the need to have the matching terminal theme installed is simply because Neovim natively supports hexadecimal color codes ("true color", ISO-8613-3 compatible terminals) which will be used as is instead of relying on the terminal to translate the requested ANSI color code to the matching hexadecimal color so the third-party Neovim Nord port can simply define the color palette like this.

lil-skelly commented 2 years ago

Yes, I understand. By the way, I am using QTerminal since it is the default terminal emulator on the kali distro. I searched through the nord official/un-official port projects but seems there isn't one for QTerminal. I think I can safely close this issue by saying that I prefer keep using the third party theme, until full support comes for neovim. Thank you

svengreb commented 2 years ago

QTerminal, and the LXQt project in general, is indeed nothing that Nord explicitly supports yet, but when there is a higher demand it might be a possible candidate when active port developments gets started again. I've added it to one of the project boards/tables that will also be made public within the next weeks.

lil-skelly commented 2 years ago

Yeah thats great. I would switch to alacritty ( i have it installed with nord as its colorscheme), I just really hate the need of using 3rd party apps to allow multiple instances/tabs screen splits etc.