## 概要
![[Pasted image 20241204184709.png]]
## 方法
[[barbar.nvim]]を[[イベント (Neovim)|イベント]]で遅延読み込みせず、`sidebar_filetypes` に `no-neck-pain` ([[no-neck-pain.nvim]]の[[スクラッチウィンドウ (Vim)|スクラッチウィンドウ]]の[[ファイルタイプ (Vim)|ファイルタイプ]]) を設定する。
```lua
return {
"romgrk/barbar.nvim",
dependencies = { "nvim-web-devicons" },
opts = {
animation = false,
sidebar_filetypes = {
["no-neck-pain"] = {},
},
},
}
```
## 参考
- [no-neck-pain.nvim integration (very similar to neo-tree / nvim-tree) · Issue #618 · romgrk/barbar.nvim](https://github.com/romgrk/barbar.nvim/issues/618)