feat(modules/home/cli): add nvf

This commit is contained in:
Mohammad Rafiq 2025-05-19 14:51:05 +08:00
parent b2ee33c215
commit d4453d1a59
No known key found for this signature in database
6 changed files with 197 additions and 6 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./file-browser/yazi.nix
./editor/nvf.nix
];
options.cli = {

View file

@ -0,0 +1,18 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.cli.editor == "nvf") {
programs.nvf = {
enable = true;
settings.vim = {
utility.yazi-nvim = {
enable = true;
mappings = {
openYazi = "t";
openYaziDir = "T";
};
setupOpts.open_for_directories = true;
};
};
};
};
}