mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 15:30:27 +02:00
helpers: add mkPackageOption + refactoring (#144)
This commit is contained in:
parent
b9a5c9c2b5
commit
4b0488d482
61 changed files with 112 additions and 263 deletions
|
@ -9,11 +9,7 @@ with lib;
|
|||
options.plugins.trouble = {
|
||||
enable = mkEnableOption "trouble.nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.trouble-nvim;
|
||||
description = "Plugin to use for trouble-nvim";
|
||||
};
|
||||
package = helpers.mkPackageOption "trouble-nvim" pkgs.vimPlugins.trouble-nvim;
|
||||
|
||||
position = helpers.mkNullOrOption (types.enum [ "top" "left" "right" "bottom" ]) "Position of the list";
|
||||
height = helpers.mkNullOrOption types.int "Height of the trouble list when position is top or bottom";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue