From dc8fbd0ffc73a4dd1cf97765e5f68b69a0a0368f Mon Sep 17 00:00:00 2001 From: Asocia Date: Sat, 17 Jul 2021 19:19:17 +0300 Subject: [PATCH] Make italic text work in neovim https://github.com/neovim/neovim/issues/13188 --- .config/nvim/lua/highlights.lua | 1 + .tmux.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/highlights.lua b/.config/nvim/lua/highlights.lua index e276211..e96e996 100644 --- a/.config/nvim/lua/highlights.lua +++ b/.config/nvim/lua/highlights.lua @@ -42,6 +42,7 @@ fg("IndentBlanklineChar", line) -- misc -- fg("LineNr", grey) fg("Comment", grey) +vim.cmd("highlight Comment gui=italic") fg("NvimInternalError", red) fg("VertSplit", line) fg("EndOfBuffer", black) diff --git a/.tmux.conf b/.tmux.conf index 7b819be..e08d2a0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -62,7 +62,7 @@ bind -n C-x setw synchronize-panes bind-key -n C-S-Left swap-window -t -1\; select-window -t -1 bind-key -n C-S-Right swap-window -t +1\; select-window -t +1 -set -g default-terminal "screen-256color" +set -g default-terminal "tmux-256color" # tell Tmux that outside terminal supports true color set -ga terminal-overrides ",xterm-256color*:Tc"