nix-community.nixvim/plugins/by-name/glance/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

31 lines
762 B
Nix

{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "glance";
packPathName = "glance.nvim";
package = "glance-nvim";
description = "Peek preview window for LSP locations in Neovim.";
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
&& (cfg.settings.use_trouble_qf == true)
&& !config.plugins.trouble.enable;
message = ''
The `trouble` plugin is not enabled, so the `glance` plugin's `use_trouble_qf` setting has no effect.
'';
};
};
}