# Colors in neovim not shown

**URL:** https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363
**Category:** Help
**Created:** [May 25, 2020, 8:56am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363 "2020-05-25T08:56:42Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![ntd](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ntd/32/168_2.png) [@ntd](https://discourse.asciinema.org/u/ntd)
#### Post date: [May 25, 2020, 8:56am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/1 "2020-05-25T08:56:42Z")

</div>

Hi all,  
I just uploaded my first asciinema cast:  
[https://asciinema.org/a/zNLcS20lFtzuL0pDkVXPQwfc1](https://asciinema.org/a/zNLcS20lFtzuL0pDkVXPQwfc1)

The problem is vim (neovim 0.4.3 to be accurate) is shown somewhat monochrome but it is not. The following screenshot shows the same source file how it has been recorded:

 ![for-asciinema](https://canada1.discourse-cdn.com/flex027/uploads/asciinema/original/1X/b7dc88a8762874246c9a0bab0bacabed617611ae.png)

If I download the screencast and replay it locally (with `asciinema play 333664.cast`) the colors are back to normal, so I suppose the file has been uploaded properly.

Any hints?

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [February 6, 2022, 1:30pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/2 "2022-02-06T13:30:57Z")

</div>

asciinema recorder doesn’t capture actual colors, it captures color numbers instead, which are then rendered in a browser according to the selected color theme. You can set the color theme for your [asciinema.org](http://asciinema.org) account, or per recording.

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [April 20, 2024, 3:32pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/3 "2024-04-20T15:32:17Z")

</div>

Good news: asciinema 3.0 captures the original terminal colors. The final version hasn’t been released yet, but there’s release candidate you can try: [Release v3.0.0-rc.1 · asciinema/asciinema · GitHub](https://github.com/asciinema/asciinema/releases/tag/v3.0.0-rc.1)

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 7, 2024, 10:11am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/4 "2024-06-07T10:11:55Z")

</div>

That’s awesome 🙌

In order to render the captured colours, do we need to use [Release 3.7.2-rc.1 · asciinema/asciinema-player · GitHub](https://github.com/asciinema/asciinema-player/releases/tag/v3.7.2-rc.1) or a later RC?

Edit: the answer is no, doesn’t appear to be supported yet

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [June 7, 2024, 10:37am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/5 "2024-06-07T10:37:04Z")

</div>

3.7.0 supports it. In order for it to use the original terminal colors you must not use `theme` option though.

In the upcoming 3.7.2 there will be `"auto/dracula"` syntax support for the `theme` option, which will automatically use original colors (if available), falling back to dracula (or any other named theme you specify).

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 7, 2024, 11:18am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/6 "2024-06-07T11:18:09Z")

</div>

Interesting, thanks for confirmation.

Is there anything that needs to be done to record it?

[index.html · GitHub](https://gist.github.com/jamietanna/0ebe2aa1709246c894939ec9cd0d0547) is how I’m looking to run it locally (no `theme` mentioned), having recorded that using:

```sh
% ~/Downloads/asciinema-x86_64-unknown-linux-gnu --version
asciinema 3.0.0-rc.1
% ~/Downloads/asciinema-x86_64-unknown-linux-gnu rec sql-workflow.new.json --overwrite

```

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 7, 2024, 11:21am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/7 "2024-06-07T11:21:37Z")

</div>

Interestingly in ☝ I can’t see the [theme object](https://docs.asciinema.org/manual/asciicast/v2/#theme) discovered so maybe it can’t autodetect?

Or is it that I need to post-process and add it?

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [June 7, 2024, 11:51am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/8 "2024-06-07T11:51:12Z")

</div>

If the `theme` field is not saved in the file then the CLI couldn’t auto-detect. This requires a terminal that supports color querying via OSC 4, OSC 10, OSC 11 control sequences.

What terminal do you use?

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 10, 2024, 11:21am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/9 "2024-06-10T11:21:42Z")

</div>

Interesting, I’m using [`kitty`](https://sw.kovidgoyal.net/kitty/)

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 10, 2024, 11:27am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/10 "2024-06-10T11:27:37Z")

</div>

I may have uploaded the wrong copy of the cast in my Gist (which I have now updated), now I’m seeing:

```json
{"version":2,"width":45,"height":26,"timestamp":1718018728,"env":{"TERM":"xterm-kitty","SHELL":"/bin/zsh"},"theme":{"fg":"#fce8c3","bg":"#1c1b19","palette":"#1c1b19:#ef2f27:#519f50:#fbb829:#2c78bf:#e02c6d:#0aaeb3:#baa67f:#918175:#f75341:#98bc37:#fed06e:#68a8e4:#ff5c8f:#2be4d0:#fce8c3"}}

```

In the header of the cast, when using `asciinema 3.0.0-rc.1`

But with that detected `theme` in the header, I’m not seeing it render with `"asciinema-player": "^3.7.2-rc.6"`

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [June 12, 2024, 12:55pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/11 "2024-06-12T12:55:40Z")

</div>

I know what’s up. kitty is using a format of RGB color control sequence which is not yet supported by asciinema player.

This line here [index.html · GitHub](https://gist.github.com/jamietanna/0ebe2aa1709246c894939ec9cd0d0547#file-sql-workflow-new-json-L21) has `\u001b[38:2:252:232:195m` (with `:`) and asciinema player supports only `\u001b[38;2;252;232;195m` variant (with `;`).

Luckily I have the fix almost ready, and I plan to release it within a couple of days.

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [June 14, 2024, 7:19pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/12 "2024-06-14T19:19:45Z")

</div>

Hey @jamietanna, does this look correct?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/asciinema/original/1X/f0baadc17db31faa16a58537715fe39a056bbf08.png)

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 14, 2024, 9:09pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/13 "2024-06-14T21:09:43Z")

</div>

Ooh yes @ku1ik yes it does 👏🏽

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [June 15, 2024, 12:07pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/14 "2024-06-15T12:07:57Z")

</div>

Hey! I’ve just released v3.8.0 of the player, which includes support for colons in SGR params, solving your issue: [Release 3.8.0 · asciinema/asciinema-player · GitHub](https://github.com/asciinema/asciinema-player/releases/tag/v3.8.0)

---

<div class="post-metadata">

### Author: ![jamietanna](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/jamietanna/32/546_2.png) [@jamietanna](https://discourse.asciinema.org/u/jamietanna)
#### Post date: [June 16, 2024, 7:48am UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/15 "2024-06-16T07:48:09Z")

</div>

Thanks so much 💜 that’s done it for me and I now see it working on my site ([My workflow for writing SQL(ite) queries (2024 edition) · Jamie Tanna | Software Engineer](https://www.jvt.me/posts/2024/06/07/sql-workflow/))

---

<div class="post-metadata">

### Author: ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)
#### Post date: [June 25, 2024, 12:32pm UTC](https://discourse.asciinema.org/t/colors-in-neovim-not-shown/363/16 "2024-06-25T12:32:37Z")

</div>

Nice! And I see your site is part of the IndieWeb Webring, cool!
