mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 12:14:32 +02:00
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
35 lines
1,005 B
Nix
35 lines
1,005 B
Nix
{ lib, config, ... }:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "lir";
|
|
packPathName = "lir.nvim";
|
|
package = "lir-nvim";
|
|
description = "A simple file explorer for Neovim.";
|
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
|
|
settingsExample = {
|
|
show_hidden_files = true;
|
|
devicons.enable = false;
|
|
mappings = {
|
|
"<CR>".__raw = "require('lir').actions.edit";
|
|
"-".__raw = "require('lir').actions.up";
|
|
"<ESC>".__raw = "require('lir').actions.quit";
|
|
"@".__raw = "require('lir').actions.cd";
|
|
};
|
|
hide_cursor = true;
|
|
};
|
|
|
|
extraConfig = cfg: {
|
|
warnings = lib.nixvim.mkWarnings "plugins.lir" {
|
|
when =
|
|
(cfg.settings ? devicons.enable)
|
|
&& (cfg.settings.devicons.enable == true)
|
|
&& (!config.plugins.web-devicons.enable);
|
|
|
|
message = ''
|
|
You have enabled `settings.devicons.enable` but `plugins.web-devicons.enable` is `false`.
|
|
Consider enabling the plugin for proper devicons support.
|
|
'';
|
|
};
|
|
};
|
|
}
|