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, ... }: {
|
||||
imports = [
|
||||
./media.nix
|
||||
./notes.nix
|
||||
./programs.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;
|
||||
defaultEditor = true;
|
||||
extraPackages = with pkgs; [ nil marksman ];
|
||||
settings = import ./helix.conf.nix;
|
||||
languages = import ./helix-languages.conf.nix;
|
||||
settings = import ./helix.conf.nix { config = config; };
|
||||
languages = import ./helix-languages.conf.nix { };
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{...}: {
|
||||
language-server = {
|
||||
asm-lsp = {
|
||||
command = "asm-lsp";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{ config, ... }: {
|
||||
theme = "rose_pine";
|
||||
|
||||
editor = {
|
||||
|
@ -30,19 +30,19 @@
|
|||
};
|
||||
|
||||
keys.normal = {
|
||||
h = "move_char_left";
|
||||
t = "move_line_up";
|
||||
n = "move_line_down";
|
||||
s = "move_char_right";
|
||||
${config.keys.up} = "move_line_up";
|
||||
${config.keys.down} = "move_line_down";
|
||||
${config.keys.left} = "move_char_left";
|
||||
${config.keys.right} = "move_char_right";
|
||||
|
||||
C-n = "search_next";
|
||||
C-t = "search_prev";
|
||||
};
|
||||
|
||||
keys.select = {
|
||||
h = "extend_char_left";
|
||||
t = "extend_line_up";
|
||||
n = "extend_line_down";
|
||||
s = "extend_char_right";
|
||||
${config.keys.up} = "extend_line_up";
|
||||
${config.keys.down} = "extend_line_down";
|
||||
${config.keys.left} = "extend_char_left";
|
||||
${config.keys.right} = "extend_char_right";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
./modules
|
||||
./options.nix
|
||||
./colors.nix
|
||||
./keys.nix
|
||||
niri.nixosModules.niri
|
||||
home-manager.nixosModules.home-manager
|
||||
lix.nixosModules.default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue