Add proper yazi theme
This commit is contained in:
+16
-18
@@ -1,11 +1,11 @@
|
||||
{pkgs, ...}:
|
||||
|
||||
let
|
||||
plugins-repo = pkgs.fetchFromGitHub {
|
||||
owner = "yazi-rs";
|
||||
repo = "plugins";
|
||||
rev = "8cd50c622898d3ace3ca821f540241965308289a";
|
||||
hash = "sha256-f4y952sUF/lrHMX6enQts/obk2DeatqAcaVHfjTD65k=";
|
||||
tkn-repo = pkgs.fetchFromGitHub {
|
||||
owner = "BennyOe";
|
||||
repo = "tokyo-night.yazi";
|
||||
rev = "8e6296f14daff24151c736ebd0b9b6cd89b02b03";
|
||||
hash = "sha256-LArhRteD7OQRBguV1n13gb5jkl90sOxShkDzgEf3PA0=";
|
||||
};
|
||||
in
|
||||
{
|
||||
@@ -25,9 +25,17 @@ in
|
||||
};
|
||||
|
||||
plugins = {
|
||||
max-preview = "${plugins-repo}/max-preview.yazi";
|
||||
full-border = "${plugins-repo}/full-border.yazi";
|
||||
git = "${plugins-repo}/git.yazi";
|
||||
full-border = pkgs.yaziPlugins.full-border;
|
||||
git = pkgs.yaziPlugins.git;
|
||||
};
|
||||
|
||||
flavors = {
|
||||
tokyo-night = tkn-repo;
|
||||
};
|
||||
|
||||
theme.flavor = {
|
||||
dark = "tokyo-night";
|
||||
light = "tokyo-night";
|
||||
};
|
||||
|
||||
initLua = ''
|
||||
@@ -36,15 +44,5 @@ in
|
||||
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