keys as option
This commit is contained in:
parent
d71a01a618
commit
253d0eb7cc
7 changed files with 46 additions and 12 deletions
16
keys.nix
Normal file
16
keys.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, ... }: let
|
||||||
|
inherit (lib) mkOption;
|
||||||
|
inherit (lib.types) attrsOf str;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
keys = mkOption {
|
||||||
|
type = attrsOf str;
|
||||||
|
default = {
|
||||||
|
up = "t";
|
||||||
|
down = "n";
|
||||||
|
left = "h";
|
||||||
|
right = "s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./media.nix
|
./media.nix
|
||||||
|
./notes.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./themes.nix
|
./themes.nix
|
||||||
];
|
];
|
||||||
|
|
16
modules/user/notes.nix
Normal file
16
modules/user/notes.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, config, pkgs, ... }: lib.mkIf config.full {
|
||||||
|
home-manager.user.${config.username} = {
|
||||||
|
home.packages = [
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.sioyek = {
|
||||||
|
enable = true;
|
||||||
|
bindings = {
|
||||||
|
"move_up" = "k";
|
||||||
|
"move_down" = "k";
|
||||||
|
"move_left" = "k";
|
||||||
|
"move_right" = "k";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -52,8 +52,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
extraPackages = with pkgs; [ nil marksman ];
|
extraPackages = with pkgs; [ nil marksman ];
|
||||||
settings = import ./helix.conf.nix;
|
settings = import ./helix.conf.nix { config = config; };
|
||||||
languages = import ./helix-languages.conf.nix;
|
languages = import ./helix-languages.conf.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{...}: {
|
||||||
language-server = {
|
language-server = {
|
||||||
asm-lsp = {
|
asm-lsp = {
|
||||||
command = "asm-lsp";
|
command = "asm-lsp";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{ config, ... }: {
|
||||||
theme = "rose_pine";
|
theme = "rose_pine";
|
||||||
|
|
||||||
editor = {
|
editor = {
|
||||||
|
@ -30,19 +30,19 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
keys.normal = {
|
keys.normal = {
|
||||||
h = "move_char_left";
|
${config.keys.up} = "move_line_up";
|
||||||
t = "move_line_up";
|
${config.keys.down} = "move_line_down";
|
||||||
n = "move_line_down";
|
${config.keys.left} = "move_char_left";
|
||||||
s = "move_char_right";
|
${config.keys.right} = "move_char_right";
|
||||||
|
|
||||||
C-n = "search_next";
|
C-n = "search_next";
|
||||||
C-t = "search_prev";
|
C-t = "search_prev";
|
||||||
};
|
};
|
||||||
|
|
||||||
keys.select = {
|
keys.select = {
|
||||||
h = "extend_char_left";
|
${config.keys.up} = "extend_line_up";
|
||||||
t = "extend_line_up";
|
${config.keys.down} = "extend_line_down";
|
||||||
n = "extend_line_down";
|
${config.keys.left} = "extend_char_left";
|
||||||
s = "extend_char_right";
|
${config.keys.right} = "extend_char_right";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
./modules
|
./modules
|
||||||
./options.nix
|
./options.nix
|
||||||
./colors.nix
|
./colors.nix
|
||||||
|
./keys.nix
|
||||||
niri.nixosModules.niri
|
niri.nixosModules.niri
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
lix.nixosModules.default
|
lix.nixosModules.default
|
||||||
|
|
Loading…
Add table
Reference in a new issue