mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
31 lines
739 B
Nix
31 lines
739 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.nixvim.mkWarnings "plugins.glance" {
|
|
when =
|
|
cfg.settings ? use_trouble_qf
|
|
&& builtins.isBool cfg.settings.use_trouble_qf
|
|
&& cfg.settings.use_trouble_qf
|
|
&& !config.plugins.trouble.enable;
|
|
|
|
message = ''
|
|
The `trouble` plugin is not enabled, so the `glance` plugin's `use_trouble_qf` setting has no effect.
|
|
'';
|
|
};
|
|
};
|
|
}
|