nix-community.nixvim/plugins/nvim-lsp/trouble.nix

25 lines
754 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2022-11-15 10:14:43 +00:00
let
cfg = config.plugins.trouble;
helpers = import ../helpers.nix { inherit lib; };
2022-11-15 10:14:43 +00:00
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
];
};
}