mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 02:08:40 +02:00
24 lines
711 B
Nix
24 lines
711 B
Nix
|
{ config, pkgs, lib, helpers, ... }:
|
||
|
let
|
||
|
cfg = config.plugins.trouble;
|
||
|
in
|
||
|
with lib;
|
||
|
# with helpers;
|
||
|
{
|
||
|
options.plugins.trouble = {
|
||
|
enable = mkEnableOption "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";
|
||
|
width = helpers.mkNullOrOption types.int "Width of the trouble list when position is left or right";
|
||
|
icons = helpers.mkNullOrOption types.bool "Use devicons for filenames";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
extraPlugins = with pkgs.vimPlugins; [
|
||
|
trouble-nvim
|
||
|
nvim-web-devicons
|
||
|
];
|
||
|
};
|
||
|
}
|