nix-community.nixvim/plugins/by-name/glance/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
762 B
Nix
Raw Normal View History

2024-12-27 09:31:08 -06:00
{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "glance";
packPathName = "glance.nvim";
package = "glance-nvim";
2025-06-18 02:42:47 +03:00
description = "Peek preview window for LSP locations in Neovim.";
2024-12-27 09:31:08 -06:00
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.
'';
};
2024-12-27 09:31:08 -06:00
};
}