mirror of
https://github.com/nix-community/nixvim.git
synced 2025-09-01 08:16:40 +02:00
plugins/tardis: add tardis-nvim
Some checks failed
Publish every Git push to main to FlakeHub / flakehub-publish (push) Has been cancelled
Publish every git push to Flakestry / publish-flake (push) Has been cancelled
Documentation / Version info (push) Has been cancelled
Documentation / Build (push) Has been cancelled
Documentation / Combine builds (push) Has been cancelled
Documentation / Deploy (push) Has been cancelled
Some checks failed
Publish every Git push to main to FlakeHub / flakehub-publish (push) Has been cancelled
Publish every git push to Flakestry / publish-flake (push) Has been cancelled
Documentation / Version info (push) Has been cancelled
Documentation / Build (push) Has been cancelled
Documentation / Combine builds (push) Has been cancelled
Documentation / Deploy (push) Has been cancelled
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