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