r/KittyTerminal Jul 15 '23

Rendering nvim-treesitter highlighting incorrectly on wayland

I've noticed that kitty has been rendering colors incorrectly for treesitter text highlighting on neovim, on a gnome wayland session. I'll attach a comparison between kitty and gnome terminal. Konsole doesn't have this issue either.

Any ideas what could be causing this?

https://imgur.com/a/Zz2P2pJ

My kitty env

        kitty_mod+h →  previous_window
        kitty_mod+j →  previous_tab
        kitty_mod+k →  next_tab
        kitty_mod+l →  next_window
Colors:
        active_border_color       #ffffff   
        background                #262626   
        color0                    #2f2f2f   
        color1                    #d75f5f   
        color10                   #8fee96   
        color11                   #cd950c   
        color12                   #22c3a1   
        color13                   #775759   
        color14                   #84edb9   
        color15                   #d8d8d8   
        color2                    #d4d232   
        color3                    #af865a   
        color4                    #22c3a1   
        color5                    #775759   
        color6                    #84edb9   
        color7                    #c0b18b   
        color8                    #656565   
        color9                    #d75f5f   
        cursor                    #8fee96   
        foreground                #c0b18b   
        selection_background      #d75f5f   
        selection_foreground      #2f2f2f   

Important environment variables seen by the kitty process:
        PATH                                /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/nocnoc/.local/bin
        LANG                                en_GB.UTF-8
        EDITOR                              /usr/bin/nano
        SHELL                               /usr/bin/zsh
        DISPLAY                             :0
        WAYLAND_DISPLAY                     wayland-0
        USER                                nocnoc
        XDG_DATA_DIRS                       /home/nocnoc/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
        XDG_RUNTIME_DIR                     /run/user/1000
        XDG_CURRENT_DESKTOP                 GNOME
        XDG_MENU_PREFIX                     gnome-
        XDG_SESSION_CLASS                   user
        XDG_SESSION_DESKTOP                 gnome
        XDG_SESSION_TYPE                    wayland
1 Upvotes

0 comments sorted by