首页 > 解决方案 > Nvim 不断关闭我的终端透明度

问题描述

我正在使用 Microsoft Store 上提供的 Windows 终端(不是默认的),我目前有丙烯酸和透明度。但是,每次我打开 nvim 时,我的颜色方案都会为背景着色,透明度消失。我尝试了几个解决方案:

highlight Normal ctermbg=NONE
set t_Co=256
set termguicolors
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
colorscheme solarized8_flat
highlight Comment cterm=italic gui=italic
if &term =~ '256color'
  " disable Background Color Erase (BCE) so that color schemes
  " render properly when inside 256-color tmux and GNU screen.
  set t_ut=
endif


这些都不起作用或改变任何东西,nvim 背景不透明的窗口。有没有办法解决这个问题?谢谢。

标签: vimneovim

解决方案


推荐阅读