Add proper yazi theme
This commit is contained in:
+16
-18
@@ -1,11 +1,11 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
|
|
||||||
let
|
let
|
||||||
plugins-repo = pkgs.fetchFromGitHub {
|
tkn-repo = pkgs.fetchFromGitHub {
|
||||||
owner = "yazi-rs";
|
owner = "BennyOe";
|
||||||
repo = "plugins";
|
repo = "tokyo-night.yazi";
|
||||||
rev = "8cd50c622898d3ace3ca821f540241965308289a";
|
rev = "8e6296f14daff24151c736ebd0b9b6cd89b02b03";
|
||||||
hash = "sha256-f4y952sUF/lrHMX6enQts/obk2DeatqAcaVHfjTD65k=";
|
hash = "sha256-LArhRteD7OQRBguV1n13gb5jkl90sOxShkDzgEf3PA0=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -25,9 +25,17 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
max-preview = "${plugins-repo}/max-preview.yazi";
|
full-border = pkgs.yaziPlugins.full-border;
|
||||||
full-border = "${plugins-repo}/full-border.yazi";
|
git = pkgs.yaziPlugins.git;
|
||||||
git = "${plugins-repo}/git.yazi";
|
};
|
||||||
|
|
||||||
|
flavors = {
|
||||||
|
tokyo-night = tkn-repo;
|
||||||
|
};
|
||||||
|
|
||||||
|
theme.flavor = {
|
||||||
|
dark = "tokyo-night";
|
||||||
|
light = "tokyo-night";
|
||||||
};
|
};
|
||||||
|
|
||||||
initLua = ''
|
initLua = ''
|
||||||
@@ -36,15 +44,5 @@ in
|
|||||||
order = 1500,
|
order = 1500,
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
keymap = {
|
|
||||||
manager.prepend_keymap = [
|
|
||||||
{
|
|
||||||
on = ["A"];
|
|
||||||
run = "plugin --sync max-preview";
|
|
||||||
desc = "Maximize or restore the preview pane";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user