refactor: Split plugin configurations from other.nix into separate files

This commit is contained in:
Moritz Böhme 2024-11-22 14:43:50 +01:00 committed by Moritz Böhme
parent 8cde6f4ea7
commit d3ce1b22c4
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
23 changed files with 264 additions and 99 deletions

View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, inputs, ... }:
let
inherit (lib) mkEnableOption mkIf readFile;
in
{
home-manager.users.moritz.programs.nixvim = {
keymaps = [
{ key = "<esc>"; action = "<cmd>noh<cr><esc>"; options.desc = "Escape and clear hlsearch"; mode = [ "i" "n" ]; }
{ key = "<"; action = "<gv"; options.desc = "Shift left"; mode = [ "v" ]; }
{ key = ">"; action = ">gv"; options.desc = "Shift right"; mode = [ "v" ]; }
{ key = "y"; action = "ygv<esc>"; options.desc = "Yank"; mode = [ "v" ]; }
];
};
}