mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 18:28:37 +02:00
29 lines
722 B
Nix
29 lines
722 B
Nix
{ config, lib, ... }:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "glance";
|
|
packPathName = "glance.nvim";
|
|
package = "glance-nvim";
|
|
|
|
maintainers = [ lib.maintainers.khaneliman ];
|
|
|
|
settingsExample = {
|
|
height = 40;
|
|
zindex = 50;
|
|
border = {
|
|
enable = true;
|
|
};
|
|
use_trouble_qf = true;
|
|
};
|
|
|
|
extraConfig = cfg: {
|
|
warnings =
|
|
lib.optional
|
|
(
|
|
cfg.settings ? use_trouble_qf
|
|
&& builtins.isBool cfg.settings.use_trouble_qf
|
|
&& cfg.settings.use_trouble_qf
|
|
&& !config.plugins.trouble.enable
|
|
)
|
|
"Nixvim (plugins.glance): The `trouble` plugin is not enabled, so the `glance` plugin's `use_trouble_qf` setting has no effect.";
|
|
};
|
|
}
|