plugins/glance: init

This commit is contained in:
Austin Horstman 2024-12-27 09:31:08 -06:00
parent fc9176c75b
commit 5b35c4eaed
No known key found for this signature in database
2 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ 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.";
};
}