feat: use yazi instead of lf for terminal file manager
This commit is contained in:
@@ -16,7 +16,7 @@ Minimal Neovim configuration, focused mostly in just coding and text editing.
|
||||
- [ ] Move [`go-grip`](https://github.com/chrishrb/go-grip) integration to it's own plugin
|
||||
(similar to [`peek.nvim`](https://github.com/toppair/peek.nvim));
|
||||
- [ ] Test configuration as a Neovim plugin;
|
||||
- [ ] Use [Yazi](https://github.com/sxyazi/yazi) instead of `lf` as file manager;
|
||||
- [x] Use [Yazi](https://github.com/sxyazi/yazi) instead of `lf` as file manager;
|
||||
- [ ] Bundle and use default formatters for when no one is available on `PATH`;
|
||||
- [ ] Better stylize the editor (mainly pop-overs and hover menus).
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ return {
|
||||
},
|
||||
after = function()
|
||||
require("tfm").setup({
|
||||
file_manager = "lf", -- TODO: Use Yazi (https://github.com/sxyazi/yazi) as file manager
|
||||
file_manager = "yazi",
|
||||
replace_netrw = true,
|
||||
enable_cmds = true,
|
||||
})
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
runCommandLocal,
|
||||
pkgs,
|
||||
lib,
|
||||
yazi ? pkgs.yazi,
|
||||
}: let
|
||||
nvimPkg = pkgs.neovim-unwrapped;
|
||||
yaziPkg = yazi;
|
||||
|
||||
startPlugins = with pkgs;
|
||||
with vimPlugins; [
|
||||
@@ -89,6 +91,7 @@
|
||||
jq
|
||||
|
||||
inputs.go-grip.packages.${pkgs.system}.default
|
||||
yaziPkg
|
||||
];
|
||||
|
||||
foldPlugins = builtins.foldl' (acc: next: acc ++ [next] ++ (foldPlugins (next.dependencies or []))) [];
|
||||
@@ -173,7 +176,7 @@ in
|
||||
terminal = true;
|
||||
};
|
||||
in ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/bin
|
||||
cp ${lib.getExe nvim-derivation} $out/bin
|
||||
mkdir -p $out/share/applications
|
||||
cp ${desktopEntry}/share/applications/${pname}.desktop $out/share/applications/${pname}.desktop
|
||||
|
||||
Reference in New Issue
Block a user