mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/lz-n: add tests for keymap(<plugin>).set API
This commit is contained in:
parent
03a0561a8f
commit
d0b88432c9
1 changed files with 69 additions and 0 deletions
|
@ -163,4 +163,73 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
example-keymap-string =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
extraPlugins = optionalPlugins [ pkgs.vimPlugins.neo-tree-nvim ];
|
||||||
|
|
||||||
|
plugins.lz-n = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
__unkeyed-1 = "neo-tree.nvim";
|
||||||
|
enabled = ''
|
||||||
|
function()
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
after = # lua
|
||||||
|
''
|
||||||
|
function()
|
||||||
|
require("neo-tree").setup()
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
action = "<CMD>Neotree toggle<CR>";
|
||||||
|
key = "<leader>ft";
|
||||||
|
mode = "";
|
||||||
|
options.desc = "NeoTree toggle";
|
||||||
|
plugin = "neo-tree.nvim";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example-keymap-spec =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
extraPlugins = optionalPlugins [ pkgs.vimPlugins.neo-tree-nvim ];
|
||||||
|
|
||||||
|
plugins.lz-n = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
action = "<CMD>Neotree toggle<CR>";
|
||||||
|
key = "<leader>ft";
|
||||||
|
mode = "";
|
||||||
|
options.desc = "NeoTree toggle";
|
||||||
|
plugin = {
|
||||||
|
__unkeyed-1 = "neo-tree.nvim";
|
||||||
|
enabled = ''
|
||||||
|
function()
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
after = # lua
|
||||||
|
''
|
||||||
|
function()
|
||||||
|
require("neo-tree").setup()
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue