aboutsummaryrefslogtreecommitdiffstats
path: root/users/sils/nixvim/config.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-11-26 20:25:15 +0100
committersils <sils@sils.li>2023-11-26 20:25:15 +0100
commit6c107bf20d834d59d2afc26763fde4c6df2de538 (patch)
treefc74b80d8255ca5bee4bd1792a1895629ed2d8b1 /users/sils/nixvim/config.nix
parentfix(flake): inputs.poetry2nix.inputs.systems.follows = "systems" (diff)
downloadnix-config-6c107bf20d834d59d2afc26763fde4c6df2de538.zip
fix(u/sils/nixvim): migrate to new keympap format
Diffstat (limited to 'users/sils/nixvim/config.nix')
-rw-r--r--users/sils/nixvim/config.nix35
1 files changed, 34 insertions, 1 deletions
diff --git a/users/sils/nixvim/config.nix b/users/sils/nixvim/config.nix
index c6f6061..56e841d 100644
--- a/users/sils/nixvim/config.nix
+++ b/users/sils/nixvim/config.nix
@@ -12,7 +12,40 @@ in {
linebreak = true;
};
colorschemes.gruvbox.enable = true;
- inherit maps;
+ keymaps = [
+ {
+ mode = ["n" "i" "t"];
+ key = "<A-h>";
+ action = ''<C-\><C-N><C-w>h'';
+ }
+ {
+ mode = ["n" "i" "t"];
+ key = "<A-j>";
+ action = ''<C-\><C-N><C-w>j'';
+ }
+ {
+ mode = ["n" "i" "t"];
+ key = "<A-k>";
+ action = ''<C-\><C-N><C-w>k'';
+ }
+ {
+ mode = ["n" "i" "t"];
+ key = "<A-l>";
+ action = ''<C-\><C-N><C-w>l'';
+ }
+ {
+ key = "<A-t>";
+ action = ":Neotree float reveal_force_cwd<cr>";
+ }
+ {
+ key = "<A-b>";
+ action = ":Neotree current show buffers<cr>";
+ }
+ {
+ key = "<A-s>";
+ action = ":Neotree float git_status<cr>";
+ }
+ ];
plugins = {
airline = {
enable = true;