neovim関連

プラグインの状況を確認する

コマンドモードで :checkhealth と入力。

neovimでカラフルにする

:checkhealthで次のエラーが出ていた

tmux
   - OK escape-time: 1
   - OK focus-events: on
   - $TERM: tmux-256color
   - WARNING Neither Tc nor RGB capability set. True colors are disabled.     ⤷  'termguicolors' won't work properly.
     - ADVICE:
       - Put this in your ~/.tmux.conf and replace XXX by your $TERM              ⤷  outside of tmux:
         set-option -sa terminal-features ',XXX:RGB'
       - For older tmux versions use this instead:
         set-option -ga terminal-overrides ',XXX:Tc'

いくつか設定に修正が必要だった。

tmux.conf修正

下記を追加

set-option -sa terminal-features ',tmux-256color:RGB'

neovim側の修正

init.lua を使用する場合: vim.opt.termguicolors = true

init.vim を使用する場合: set termguicolors

参考