Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost italics #190

Open
pmatulis opened this issue Jan 3, 2024 · 1 comment
Open

Lost italics #190

pmatulis opened this issue Jan 3, 2024 · 1 comment

Comments

@pmatulis
Copy link

pmatulis commented Jan 3, 2024

I'm using Alacritty as my terminal emulator, Tmux as my terminal multiplexor, Neovim as my editor, and Nert Font JetBrainsMono as my font. In the beginning, when first testing Kanagawa, I had italics for comments. Somewhere along the line I lost them. I've disabled the treesitter Neovim plugin as I thought that it might be interfering, but without success. I have the following in my Kanagawa config:

require("kanagawa").setup({
  compile = true,
  undercurl = false,
  commentStyle = { italic = true },
  functionStyle = {},
  keywordStyle = { italic = true},
  statementStyle = { bold = true },
  typeStyle = {},
  transparent = false,
  dimInactive = false,
  terminalColors = true,
  colors = {
      palette = {
          sumiInk3 = "#2A2A37",     -- background (less dark)
          waveBlue1 = "#43242B",    -- visual selection (maroon)
          surimiOrange = "#DDDDDD"  -- values, booleans
      },
  },
  overrides = function(colors)
      return {}
  end,
  background = {
      dark = "wave",
      light = "lotus"
  },
})

Can you advise what should I be looking at?

@terje
Copy link

terje commented Apr 3, 2024

Hi there,
I had the same problem as you but the tips in this issue fixed it for me:

  • Check that the output of echo -e "\e[3mItalic" shows in italic. This takes NeoVim out of the equation to make sure that your terminal is set up right
  • Check that the output of echo $TERM is xterm-256color. My tmux config set this value to screen-256color and this made italic text not work. set -g default-terminal "xterm-256color" in your .tmux.conf.
  • Check that your alacritty config haven't overwritten the italic font definition with a regular font variant. You don't have to set your own italic style but if you do, make sure it's actually italic.

Hope something of this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants