mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/glance: init
This commit is contained in:
parent
fc9176c75b
commit
5b35c4eaed
2 changed files with 126 additions and 0 deletions
29
plugins/by-name/glance/default.nix
Normal file
29
plugins/by-name/glance/default.nix
Normal 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.";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue