mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 04:14:28 +02:00
trouble.nvim: init
This commit is contained in:
parent
fb22debb36
commit
4f08c8a4bf
4 changed files with 39 additions and 6 deletions
|
@ -30,6 +30,7 @@
|
|||
./nvim-lsp
|
||||
./nvim-lsp/lspsaga.nix
|
||||
./nvim-lsp/lsp-lines.nix
|
||||
./nvim-lsp/trouble.nix
|
||||
|
||||
./pluginmanagers/packer.nix
|
||||
|
||||
|
|
23
plugins/nvim-lsp/trouble.nix
Normal file
23
plugins/nvim-lsp/trouble.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue