mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-16 15:31:52 +02:00
trouble: package option
This commit is contained in:
parent
406e8eb715
commit
640dec9f89
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ with lib;
|
||||||
options.plugins.trouble = {
|
options.plugins.trouble = {
|
||||||
enable = mkEnableOption "trouble.nvim";
|
enable = mkEnableOption "trouble.nvim";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.trouble-nvim;
|
||||||
|
description = "Plugin to use for trouble-nvim";
|
||||||
|
};
|
||||||
|
|
||||||
position = helpers.mkNullOrOption (types.enum [ "top" "left" "right" "bottom" ]) "Position of the list";
|
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";
|
height = helpers.mkNullOrOption types.int "Height of the trouble list when position is top or bottom";
|
||||||
width = helpers.mkNullOrOption types.int "Width of the trouble list when position is left or right";
|
width = helpers.mkNullOrOption types.int "Width of the trouble list when position is left or right";
|
||||||
|
@ -17,7 +23,7 @@ with lib;
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
trouble-nvim
|
cfg.package
|
||||||
nvim-web-devicons
|
nvim-web-devicons
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue