LoginSignup
1
0

More than 1 year has passed since last update.

`nvim_open_win()` で作った `floating window` の border を表示したい

Posted at

はじめに

その…なに…?

これを
image.png

こうします
image.png

環境

  • OS
    • Windows10
  • Neovim
    • 0.8.0 ( winget で配信されている stable )

解決方法

以下のように FloatBorderhighlight 指定を記述すると解決できます

" floating window そのものの色
hi! NormalFloat     ctermbg=249 ctermfg=46 guibg=#2F0B3A guifg=#D8D8D8
" floating window の border の色指定
hi! FloatBorder     ctermbg=249 ctermfg=46 guibg=#2F0B3A guifg=#D8D8D8

ctermbg= …とかいろいろ色探すのめんどい

hi! link の後に記述するふたつめの highlight-groups にコピーしたい highlight-group を指定すると、簡単に設定できます

hi! link FloatBorder NonText

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0