From d1cbd90ef3594189cacbca188df233047ccd853c Mon Sep 17 00:00:00 2001 From: sils Date: Tue, 22 Aug 2023 17:01:21 +0200 Subject: Feat(u/sils/nixvim): Add keymaps to exit terminal mode conveniently --- users/sils/nixvim/default.nix | 6 +++++- users/sils/nixvim/maps/default.nix | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 users/sils/nixvim/maps/default.nix (limited to 'users') diff --git a/users/sils/nixvim/default.nix b/users/sils/nixvim/default.nix index f5fe379..66134e9 100644 --- a/users/sils/nixvim/default.nix +++ b/users/sils/nixvim/default.nix @@ -1,4 +1,7 @@ -{...}: { + let + maps = import ./maps; + in + { programs.nixvim = { enable = true; options = { @@ -9,6 +12,7 @@ scrolloff = 999; }; colorschemes.gruvbox.enable = true; + inherit maps; plugins = { airline = { enable = true; diff --git a/users/sils/nixvim/maps/default.nix b/users/sils/nixvim/maps/default.nix new file mode 100644 index 0000000..ecef03e --- /dev/null +++ b/users/sils/nixvim/maps/default.nix @@ -0,0 +1,20 @@ +{ + terminal = { + "" = ''h''; + "" = ''j''; + "" = ''k''; + "" = ''l''; + }; + normal = { + "" = ''h''; + "" = ''j''; + "" = ''k''; + "" = ''l''; + }; + insert = { + "" = ''h''; + "" = ''j''; + "" = ''k''; + "" = ''l''; + }; +} -- cgit 1.4.1