trouble.nvim: init

This commit is contained in:
Pedro Alves 2022-11-15 10:14:43 +00:00
parent fb22debb36
commit 4f08c8a4bf
4 changed files with 39 additions and 6 deletions

View file

@ -30,6 +30,7 @@
./nvim-lsp
./nvim-lsp/lspsaga.nix
./nvim-lsp/lsp-lines.nix
./nvim-lsp/trouble.nix
./pluginmanagers/packer.nix

View file

@ -0,0 +1,23 @@
{ 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
];
};
}