mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-22 15:01:57 +00:00
Added plugins to yazi config
This commit is contained in:
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -22,3 +22,9 @@
|
|||||||
[submodule "home-manager/core/programs/yazi/plugins/glow.yazi"]
|
[submodule "home-manager/core/programs/yazi/plugins/glow.yazi"]
|
||||||
path = home-manager/core/programs/yazi/plugins/glow.yazi
|
path = home-manager/core/programs/yazi/plugins/glow.yazi
|
||||||
url = https://github.com/Reledia/glow.yazi
|
url = https://github.com/Reledia/glow.yazi
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/wl-clipboard.yazi"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/wl-clipboard.yazi
|
||||||
|
url = https://github.com/grappas/wl-clipboard.yazi
|
||||||
|
[submodule "home-manager/core/programs/yazi/plugins/rich-preview.yazi"]
|
||||||
|
path = home-manager/core/programs/yazi/plugins/rich-preview.yazi
|
||||||
|
url = https://github.com/AnirudhG07/rich-preview.yazi
|
||||||
|
|||||||
@@ -9,18 +9,21 @@
|
|||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = unstablePkgs.yazi;
|
package = unstablePkgs.yazi;
|
||||||
|
programs.yazi.enableNushellIntegration = true;
|
||||||
initLua = ./yazi/init.lua;
|
initLua = ./yazi/init.lua;
|
||||||
# plugins = {
|
# plugins = {
|
||||||
# sudo = ./yazi/plugins/sudo.yazi;
|
|
||||||
# chmod = ./yazi/plugins/core/chmod.yazi;
|
# chmod = ./yazi/plugins/core/chmod.yazi;
|
||||||
# mime-ext = ./yazi/plugins/core/mime-ext.yazi;
|
|
||||||
# git = ./yazi/plugins/core/git.yazi;
|
|
||||||
# ouch = ./yazi/plugins/ouch.yazi;
|
|
||||||
# starship = ./yazi/plugins/starship.yazi;
|
|
||||||
# full-border = ./yazi/plugins/core/full-border.yazi;
|
# full-border = ./yazi/plugins/core/full-border.yazi;
|
||||||
|
# git = ./yazi/plugins/core/git.yazi;
|
||||||
# glow = ./yazi/plugins/glow.yazi;
|
# glow = ./yazi/plugins/glow.yazi;
|
||||||
# hexyl = ./yazi/plugins/hexyl.yazi;
|
# hexyl = ./yazi/plugins/hexyl.yazi;
|
||||||
# max-preview = ./yazi/plugins/core/max-preview.yazi;
|
# max-preview = ./yazi/plugins/core/max-preview.yazi;
|
||||||
|
# mime-ext = ./yazi/plugins/core/mime-ext.yazi;
|
||||||
|
# ouch = ./yazi/plugins/ouch.yazi;
|
||||||
|
# rich-preview = ./yazi/plugins/core/rich-preview.yazi;
|
||||||
|
# starship = ./yazi/plugins/starship.yazi;
|
||||||
|
# sudo = ./yazi/plugins/sudo.yazi;
|
||||||
|
# wl-clipboard = ./yazi/plugins/core/wl-clipboard.yazi;
|
||||||
# };
|
# };
|
||||||
# flavors = {
|
# flavors = {
|
||||||
# tokyo-night = ./yazi/flavors/tokyo-night.yazi;
|
# tokyo-night = ./yazi/flavors/tokyo-night.yazi;
|
||||||
@@ -34,16 +37,18 @@
|
|||||||
|
|
||||||
# Manually place plugins for now, until home-manager updates for newer yazi versions
|
# Manually place plugins for now, until home-manager updates for newer yazi versions
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"yazi/plugins/sudo.yazi".source = ./yazi/plugins/sudo.yazi;
|
|
||||||
"yazi/plugins/chmod.yazi".source = ./yazi/plugins/core/chmod.yazi;
|
"yazi/plugins/chmod.yazi".source = ./yazi/plugins/core/chmod.yazi;
|
||||||
"yazi/plugins/mime-ext.yazi".source = ./yazi/plugins/core/mime-ext.yazi;
|
|
||||||
"yazi/plugins/git.yazi".source = ./yazi/plugins/core/git.yazi;
|
|
||||||
"yazi/plugins/ouch.yazi".source = ./yazi/plugins/ouch.yazi;
|
|
||||||
"yazi/plugins/starship.yazi".source = ./yazi/plugins/starship.yazi;
|
|
||||||
"yazi/plugins/full-border.yazi".source = ./yazi/plugins/core/full-border.yazi;
|
"yazi/plugins/full-border.yazi".source = ./yazi/plugins/core/full-border.yazi;
|
||||||
|
"yazi/plugins/git.yazi".source = ./yazi/plugins/core/git.yazi;
|
||||||
"yazi/plugins/glow.yazi".source = ./yazi/plugins/glow.yazi;
|
"yazi/plugins/glow.yazi".source = ./yazi/plugins/glow.yazi;
|
||||||
"yazi/plugins/hexyl.yazi".source = ./yazi/plugins/hexyl.yazi;
|
"yazi/plugins/hexyl.yazi".source = ./yazi/plugins/hexyl.yazi;
|
||||||
"yazi/plugins/max-preview.yazi".source = ./yazi/plugins/core/max-preview.yazi;
|
"yazi/plugins/max-preview.yazi".source = ./yazi/plugins/core/max-preview.yazi;
|
||||||
|
"yazi/plugins/mime-ext.yazi".source = ./yazi/plugins/core/mime-ext.yazi;
|
||||||
|
"yazi/plugins/ouch.yazi".source = ./yazi/plugins/ouch.yazi;
|
||||||
|
"yazi/plugins/rich-preview.yazi".source = ./yazi/plugins/core/rich-preview.yazi;
|
||||||
|
"yazi/plugins/starship.yazi".source = ./yazi/plugins/starship.yazi;
|
||||||
|
"yazi/plugins/sudo.yazi".source = ./yazi/plugins/sudo.yazi;
|
||||||
|
"yazi/plugins/wl-clipboard.yazi".source = ./yazi/plugins/core/wl-clipboard.yazi;
|
||||||
"yazi/flavors/tokyo-night.yazi".source = ./yazi/flavors/tokyo-night.yazi;
|
"yazi/flavors/tokyo-night.yazi".source = ./yazi/flavors/tokyo-night.yazi;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -487,3 +487,8 @@ desc = "Chmod on selected files"
|
|||||||
on = "T"
|
on = "T"
|
||||||
run = "plugin --sync max-preview"
|
run = "plugin --sync max-preview"
|
||||||
desc = "Maximize or restore preview"
|
desc = "Maximize or restore preview"
|
||||||
|
|
||||||
|
[[manager.prepend_keymap]]
|
||||||
|
on = "<C-y>"
|
||||||
|
run = ["plugin wl-clipboard"]
|
||||||
|
desc = "Yank to wl-clipboard"
|
||||||
|
|||||||
Submodule home-manager/core/programs/yazi/plugins/rich-preview.yazi added at 2559e5fa7c
Submodule home-manager/core/programs/yazi/plugins/wl-clipboard.yazi added at c4edc4f6ad
@@ -1,12 +1,17 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
prepend_previewers = [
|
prepend_previewers = [
|
||||||
{ name = "*.md", run = "glow" },
|
{ name = "*.md", run = "glow" },
|
||||||
{ name = "*.bin", run = "hexyl" },
|
{ name = "*.bin", run = "hexyl" },
|
||||||
]
|
]
|
||||||
append_previewers = [
|
append_previewers = [
|
||||||
{ name = "*", run = "hexyl" },
|
{ name = "*", run = "hexyl" },
|
||||||
|
{ name = "*.csv", run = "rich-preview" },
|
||||||
|
{ name = "*.md", run = "rich-preview" },
|
||||||
|
{ name = "*.rst", run = "rich-preview" },
|
||||||
|
{ name = "*.ipynb", run = "rich-preview" },
|
||||||
|
{ name = "*.json", run = "rich-preview" },
|
||||||
]
|
]
|
||||||
prepend_fetchers = [
|
prepend_fetchers = [
|
||||||
{ id = "git", name = "*", run = "git" },
|
{ id = "git", name = "*", run = "git" },
|
||||||
{ id = "git", name = "*/", run = "git" },
|
{ id = "git", name = "*/", run = "git" },
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user