mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 03:04:34 +02:00
plugins/git: move to by-name
This commit is contained in:
parent
d016b139fc
commit
2a91b89445
29 changed files with 0 additions and 15 deletions
59
plugins/by-name/committia/default.nix
Normal file
59
plugins/by-name/committia/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
helpers,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
helpers.vim-plugin.mkVimPlugin {
|
||||
name = "committia";
|
||||
originalName = "committia.vim";
|
||||
package = "committia-vim";
|
||||
globalPrefix = "committia_";
|
||||
|
||||
maintainers = [ helpers.maintainers.alisonjenkins ];
|
||||
|
||||
settingsOptions = {
|
||||
open_only_vim_starting = helpers.defaultNullOpts.mkFlagInt 1 ''
|
||||
If `0`, committia.vim always attempts to open committia's buffer when `COMMIT_EDITMSG` buffer is opened.
|
||||
If you use `vim-fugitive`, I recommend to set this value to `1`.
|
||||
'';
|
||||
|
||||
use_singlecolumn = helpers.defaultNullOpts.mkStr "always" ''
|
||||
If the value is 'always', `committia.vim` always employs single column mode.
|
||||
'';
|
||||
|
||||
min_window_width = helpers.defaultNullOpts.mkUnsignedInt 160 ''
|
||||
If the width of window is narrower than the value, `committia.vim` employs single column mode.
|
||||
'';
|
||||
|
||||
status_window_opencmd = helpers.defaultNullOpts.mkStr "belowright split" ''
|
||||
Vim command which opens a status window in multi-columns mode.
|
||||
'';
|
||||
|
||||
diff_window_opencmd = helpers.defaultNullOpts.mkStr "botright vsplit" ''
|
||||
Vim command which opens a diff window in multi-columns mode.
|
||||
'';
|
||||
|
||||
singlecolumn_diff_window_opencmd = helpers.defaultNullOpts.mkStr "belowright split" ''
|
||||
Vim command which opens a diff window in single-column mode.
|
||||
'';
|
||||
|
||||
edit_window_width = helpers.defaultNullOpts.mkUnsignedInt 80 ''
|
||||
If `committia.vim` is in multi-columns mode, specifies the width of the edit window.
|
||||
'';
|
||||
|
||||
status_window_min_height = helpers.defaultNullOpts.mkUnsignedInt 0 ''
|
||||
Minimum height of a status window.
|
||||
'';
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
gitPackage = lib.mkPackageOption pkgs "git" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue