mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/tardis: add tardis-nvim
This commit is contained in:
parent
b7e96214e8
commit
8bad4d407d
2 changed files with 56 additions and 0 deletions
30
plugins/by-name/tardis/default.nix
Normal file
30
plugins/by-name/tardis/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "tardis";
|
||||||
|
moduleName = "tardis-nvim";
|
||||||
|
packPathName = "tardis.nvim";
|
||||||
|
package = "tardis-nvim";
|
||||||
|
description = ''
|
||||||
|
Timetravel for neovim
|
||||||
|
'';
|
||||||
|
# TODO: Remove after https://github.com/NixOS/nixpkgs/pull/438707
|
||||||
|
url = "https://github.com/FredeHoey/tardis.nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.fredeb ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
keymap = {
|
||||||
|
next = "<C-j>";
|
||||||
|
prev = "<C-k>";
|
||||||
|
quit = "q";
|
||||||
|
revision_message = "<C-m>";
|
||||||
|
commit = "<C-g>";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
initial_revisions = 10;
|
||||||
|
max_revisions = 256;
|
||||||
|
show_commit_index = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
26
tests/test-sources/plugins/by-name/tardis/default.nix
Normal file
26
tests/test-sources/plugins/by-name/tardis/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.tardis.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.tardis = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
keymap = {
|
||||||
|
next = "<C-j>";
|
||||||
|
prev = "<C-k>";
|
||||||
|
quit = "q";
|
||||||
|
revision_message = "<C-m>";
|
||||||
|
commit = "<C-g>";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
initial_revisions = 10;
|
||||||
|
max_revisions = 256;
|
||||||
|
show_commit_index = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue