plugins/oil-git-status: update signcolumn instructions

See:

- https://github.com/refractalize/oil-git-status.nvim#configuration
- https://neovim.io/doc/user/options.html#'signcolumn'
This commit is contained in:
Matt Sturgeon 2025-05-08 23:53:22 +01:00
parent 3556951d36
commit 2797fd8b64
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 23 additions and 13 deletions

View file

@ -17,17 +17,27 @@ lib.nixvim.plugins.mkNeovimPlugin {
listing so it won't slow oil down on big repositories. The plugin puts the status in two new sign columns listing so it won't slow oil down on big repositories. The plugin puts the status in two new sign columns
the left being the status of the index, the right being the status of the working directory the left being the status of the index, the right being the status of the working directory
`win_options.signcolumn` needs to be configured in `plugins.oil.settings`: > [!NOTE]
```nix > This plugin requires you configure `plugins.oil` to allow at least 2 sign columns:
plugins.oil = { >
enable = true; > ```nix
settings = { > plugins.oil = {
win_options = { > enable = true;
signcolumn = "yes:2,"; > settings = {
}; > win_options = {
}; > signcolumn = "yes:2";
}; > };
``` > };
> };
> ```
>
> Valid values include `yes` or `auto` with a "max" of at least `2`.
> E.g. `"yes:2"` or `"auto:1-2"`.
>
> See [plugin docs][readme-configuration] and [`:h 'signcolumn'`]
[readme-configuration]: https://github.com/refractalize/oil-git-status.nvim#configuration
[`:h 'signcolumn'`]: https://neovim.io/doc/user/options.html#'signcolumn'
''; '';
maintainers = [ lib.maintainers.FKouhai ]; maintainers = [ lib.maintainers.FKouhai ];

View file

@ -6,7 +6,7 @@
enable = true; enable = true;
settings = { settings = {
win_options = { win_options = {
signcolumn = "yes:2,"; signcolumn = "yes:2";
}; };
}; };
}; };
@ -24,7 +24,7 @@
enable = true; enable = true;
settings = { settings = {
win_options = { win_options = {
signcolumn = "yes:2,"; signcolumn = "yes:2";
}; };
}; };
}; };