20 lines
426 B
Nix
20 lines
426 B
Nix
{ config, lib, ... }:
|
|
{
|
|
config = lib.mkIf (config.cli.editor == "nvf") {
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
programs.nvf = {
|
|
enable = true;
|
|
settings.vim = {
|
|
keymaps = import ./keymaps.nix;
|
|
utility.yazi-nvim = {
|
|
enable = true;
|
|
mappings = {
|
|
openYazi = "t";
|
|
openYaziDir = "T";
|
|
};
|
|
setupOpts.open_for_directories = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|