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"]
|
||||
path = home-manager/core/programs/yazi/plugins/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 = {
|
||||
enable = true;
|
||||
package = unstablePkgs.yazi;
|
||||
programs.yazi.enableNushellIntegration = true;
|
||||
initLua = ./yazi/init.lua;
|
||||
# plugins = {
|
||||
# sudo = ./yazi/plugins/sudo.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;
|
||||
# git = ./yazi/plugins/core/git.yazi;
|
||||
# glow = ./yazi/plugins/glow.yazi;
|
||||
# hexyl = ./yazi/plugins/hexyl.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 = {
|
||||
# tokyo-night = ./yazi/flavors/tokyo-night.yazi;
|
||||
@@ -34,16 +37,18 @@
|
||||
|
||||
# Manually place plugins for now, until home-manager updates for newer yazi versions
|
||||
xdg.configFile = {
|
||||
"yazi/plugins/sudo.yazi".source = ./yazi/plugins/sudo.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/git.yazi".source = ./yazi/plugins/core/git.yazi;
|
||||
"yazi/plugins/glow.yazi".source = ./yazi/plugins/glow.yazi;
|
||||
"yazi/plugins/hexyl.yazi".source = ./yazi/plugins/hexyl.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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -487,3 +487,8 @@ desc = "Chmod on selected files"
|
||||
on = "T"
|
||||
run = "plugin --sync max-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
@@ -5,6 +5,11 @@ prepend_previewers = [
|
||||
]
|
||||
append_previewers = [
|
||||
{ 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 = [
|
||||
{ id = "git", name = "*", run = "git" },
|
||||
|
||||
Reference in New Issue
Block a user