25 lines
436 B
Nix
25 lines
436 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf;
|
|
cfg = config.ooknet.editor.nvim;
|
|
console = config.ooknet.console;
|
|
in
|
|
|
|
{
|
|
config = mkIf (cfg.enable || console.editor == "nvim") {
|
|
programs.nixvim = {
|
|
globals = {
|
|
mapleader = " ";
|
|
maplocalleader = " ";
|
|
};
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>f";
|
|
action = "+find/file";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|