plugins/jj-nvim: init
This commit is contained in:
parent
e0cd240ffd
commit
d885c9b79b
3 changed files with 52 additions and 0 deletions
|
|
@ -153,6 +153,7 @@ in
|
|||
grep.default = "gnugrep";
|
||||
gzip.default = "gzip";
|
||||
imagemagick.default = "imagemagick";
|
||||
jujutsu.default = "jujutsu";
|
||||
jupytext.default = [
|
||||
"python313Packages"
|
||||
"jupytext"
|
||||
|
|
|
|||
25
plugins/by-name/jj-nvim/default.nix
Normal file
25
plugins/by-name/jj-nvim/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "jj-nvim";
|
||||
moduleName = "jj";
|
||||
package = "jj-nvim";
|
||||
description = "Drive Jujutsu (jj) VCS from Neovim like a pro";
|
||||
|
||||
maintainers = [ lib.maintainers.sportshead ];
|
||||
|
||||
dependencies = [ "jujutsu" ];
|
||||
|
||||
settingsExample = {
|
||||
picker.snacks = { };
|
||||
|
||||
diff = {
|
||||
backend = "codediff";
|
||||
};
|
||||
|
||||
cmd = {
|
||||
describe.editor = {
|
||||
type = "buffer";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
26
tests/test-sources/plugins/by-name/jj-nvim/default.nix
Normal file
26
tests/test-sources/plugins/by-name/jj-nvim/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.jj-nvim.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.snacks.enable = true;
|
||||
plugins.codediff.enable = true;
|
||||
|
||||
plugins.jj-nvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
picker.snacks = { };
|
||||
diff.backend = "codediff";
|
||||
editor.auto_insert = true;
|
||||
terminal.window.type = "vsplit";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.jj-nvim.enable = true;
|
||||
dependencies.jujutsu.enable = false;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue