mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-04 14:24:29 +02:00
plugins/trouble: use iconsPackage
This commit is contained in:
parent
4acf12c49d
commit
150c5f454b
2 changed files with 18 additions and 2 deletions
|
@ -11,8 +11,6 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
originalName = "trouble-nvim";
|
originalName = "trouble-nvim";
|
||||||
defaultPackage = pkgs.vimPlugins.trouble-nvim;
|
defaultPackage = pkgs.vimPlugins.trouble-nvim;
|
||||||
|
|
||||||
extraPlugins = with pkgs.vimPlugins; [ nvim-web-devicons ];
|
|
||||||
|
|
||||||
maintainers = [ maintainers.loicreynier ];
|
maintainers = [ maintainers.loicreynier ];
|
||||||
|
|
||||||
# TODO introduced 2024-03-15: remove 2024-05-15
|
# TODO introduced 2024-03-15: remove 2024-05-15
|
||||||
|
@ -302,4 +300,15 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
Enabling this will use the signs defined in your lsp client
|
Enabling this will use the signs defined in your lsp client
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraOptions = {
|
||||||
|
iconsPackage = helpers.mkPackageOption {
|
||||||
|
name = "nvim-web-devicons";
|
||||||
|
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = cfg: {
|
||||||
|
extraPlugins = mkIf (cfg.iconsPackage != null) [ cfg.iconsPackage ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,4 +77,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.trouble = {
|
||||||
|
enable = true;
|
||||||
|
iconsPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue