たとえば `git` セクションで使用されている `s` を [[hop.nvim]] のキーバインドとして使っているので無効化したい場合。以下のように設定する。
```lua
use {
'sidebar-nvim/sidebar.nvim',
config = function()
require("sidebar-nvim").setup {
open = true,
sections = { "git", "diagnostics", "files", "symbols" }
}
-- hop.nvimでsを使いたいので無効化してaに割り当て
local git_section = require("sidebar-nvim.builtin.git")
git_section.bindings["a"] = git_section.bindings["s"]
git_section.bindings["s"] = nil
end
}
```
## 参考
- [\[Feature\] add key binding to builtin sections · Issue \#67 · sidebar\-nvim/sidebar\.nvim](https://github.com/sidebar-nvim/sidebar.nvim/issues/67)