mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-18 17:54:36 +02:00
plugins/lir: init
This commit is contained in:
parent
2fc2132a78
commit
8db6c51762
3 changed files with 207 additions and 0 deletions
35
plugins/by-name/lir/default.nix
Normal file
35
plugins/by-name/lir/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib, config, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "lir";
|
||||
packPathName = "lir.nvim";
|
||||
package = "lir-nvim";
|
||||
|
||||
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.optional
|
||||
(
|
||||
(cfg.settings ? devicons.enable)
|
||||
&& (lib.isBool cfg.settings.devicons.enable)
|
||||
&& cfg.settings.devicons.enable
|
||||
&& (!config.plugins.web-devicons.enable)
|
||||
)
|
||||
''
|
||||
Nixvim (plugins.lir): You have enabled `settings.devicons.enable` but `plugins.web-devicons.enable` is `false`.
|
||||
Consider enabling the plugin for proper devicons support.
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue