Code Monkey home page Code Monkey logo

Comments (15)

rossmacarthur avatar rossmacarthur commented on May 28, 2024 6

I'm on macOS using iTerm2 and I had the same problem. See #10 (comment)

I managed to solve this by doing the following:

  1. Make sure you have xterm-256color, you might have to install ncurses (brew install ncurses)
❯ toe | grep xterm-256color
xterm-256color	xterm with 256 colors
  1. I deleted ~/.terminfo, I for some reason had bad files in here, probably was fiddling with terminfo a long time ago.

  2. I created a new file xterm-256color.terminfo

xterm-256color|xterm-256color with italics support,
    sitm=\E[3m, ritm=\E[23m, dim=\E[2m,
    use=xterm-256color,
  1. I compiled this by running
tic xterm-256color.terminfo

You can verify that xterm-256color was updated by checking:

❯ toe | grep xterm-256color
xterm-256color	xterm-256color with italics support
  1. Make sure you set the following setting in iTerm2. Preferences > Profiles > Default > Terminal > Terminal Emulation.

image

You can also export TERM=xterm-256color instead

After
image

from night-owl.vim.

aminnairi avatar aminnairi commented on May 28, 2024 4

I have set these options on my Konsole terminal on ArchLinux using Tmux & NeoVIM so that it can have the correct background.

tmux.conf

# Tmux true color support
set -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal "tmux-256color"

from night-owl.vim.

rossmacarthur avatar rossmacarthur commented on May 28, 2024 2

Perhaps I need to make changes to my iTerm2 settings?

The background seems particularly to be the problem here.

Untitled

from night-owl.vim.

dubst3pp4 avatar dubst3pp4 commented on May 28, 2024 2

I have set these options on my Konsole terminal on ArchLinux using Tmux & NeoVIM so that it can have the correct background.

tmux.conf

# Tmux true color support
set -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal "tmux-256color"

Unfortunately there is no kiss icon. This solved all my Vim + tmux color scheme problems. Thank you very much!

from night-owl.vim.

travisboss avatar travisboss commented on May 28, 2024 1

Unable to get the theme working!

This is probably due to not setting termguicolors if you use neovim you need to add

if (has("termguicolors"))
 set termguicolors
endif

to your init.vim

I think this might be the same for vim 8+ now also.

from night-owl.vim.

travisboss avatar travisboss commented on May 28, 2024 1

it should not matter i think but you have two items telling the system how to enable true color. what version of neovim or vim do you have?

Also from Neovim FAQ please check about true color here

autocmd ColorScheme * highlight Normal guibg=011627
Could try this also in your vimrc to see if that will override whatever is causing the issue.

EDIT: I just tried the theme, I am using Therm a saner version of iTerm2 on MacOS and here is a screenshot. I left the other parts as that is all I have in my colorscheme area (the commented out section is for my delicate eyes).

Screen Shot 2019-11-15 at 11 36 01 AM

from night-owl.vim.

haishanh avatar haishanh commented on May 28, 2024

Thanks for reporting.

Are you using Hyper term? According to this gist Hyper does not support true color yet.

Do you mean the background color is not working properly?

from night-owl.vim.

CristoAMH avatar CristoAMH commented on May 28, 2024

I still have the problem that background is not working properly. I added what @travisboss commented but that did't work for me. It just happens in neovim. Any help?

from night-owl.vim.

tomrevansecho avatar tomrevansecho commented on May 28, 2024

I'm having same issue, can't get theme to display properly. Really like this theme :(

from night-owl.vim.

rossmacarthur avatar rossmacarthur commented on May 28, 2024

I have the same issue in iTerm2

from night-owl.vim.

travisboss avatar travisboss commented on May 28, 2024

Can all of you post a screenshot showing the failure?

from night-owl.vim.

brianmoran avatar brianmoran commented on May 28, 2024

this worked for me in my .tmux.conf file
set -g default-terminal "tmux-256color"

from night-owl.vim.

onezhaoyn avatar onezhaoyn commented on May 28, 2024

Perhaps I need to make changes to my iTerm2 settings?

The background seems particularly to be the problem here.

Untitled

i'm having the same issue, how you solved it?

from night-owl.vim.

brianmoran avatar brianmoran commented on May 28, 2024

I was able to get the background to render correctly by removing the # in guibg. Put the following after setting colorscheme.

hi Normal guifg=#d6deeb ctermfg=253 guibg=011627 ctermbg=233 gui=NONE cterm=NONE
hi SignColumn guifg=NONE ctermfg=NONE guibg=011627 ctermbg=233 gui=NONE cterm=NONE
hi LineNr guifg=#444444 ctermfg=238 guibg=011627 ctermbg=233 gui=NONE cterm=NONE
hi EndOfBuffer guifg=#444444 ctermfg=238 guibg=011627 ctermbg=233 gui=NONE cterm=NONE

from night-owl.vim.

princejoogie avatar princejoogie commented on May 28, 2024

@haishanh I am getting the correct background but the html tags and react components dont seem to be the right color (even < & >)

Expected (in README)

image

Actual

image

theres this #FFA500 color which I also tried manually overriding but cant find this hex in the repo

from night-owl.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.