From 6c107bf20d834d59d2afc26763fde4c6df2de538 Mon Sep 17 00:00:00 2001 From: sils Date: Sun, 26 Nov 2023 20:25:15 +0100 Subject: fix(u/sils/nixvim): migrate to new keympap format --- users/sils/nixvim/config.nix | 35 ++++++++++++++++++++++++++++++++++- users/sils/nixvim/maps/default.nix | 28 ---------------------------- 2 files changed, 34 insertions(+), 29 deletions(-) delete mode 100644 users/sils/nixvim/maps/default.nix 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 = ""; + action = ''h''; + } + { + mode = ["n" "i" "t"]; + key = ""; + action = ''j''; + } + { + mode = ["n" "i" "t"]; + key = ""; + action = ''k''; + } + { + mode = ["n" "i" "t"]; + key = ""; + action = ''l''; + } + { + key = ""; + action = ":Neotree float reveal_force_cwd"; + } + { + key = ""; + action = ":Neotree current show buffers"; + } + { + key = ""; + action = ":Neotree float git_status"; + } + ]; plugins = { airline = { enable = true; diff --git a/users/sils/nixvim/maps/default.nix b/users/sils/nixvim/maps/default.nix deleted file mode 100644 index 6f4aac3..0000000 --- a/users/sils/nixvim/maps/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - terminal = { - # Move into different windows - "" = ''h''; - "" = ''j''; - "" = ''k''; - "" = ''l''; - }; - normal = { - # Move into different windows - "" = ''h''; - "" = ''j''; - "" = ''k''; - "" = ''l''; - - #Neotree - "" = ":Neotree float reveal_force_cwd"; - "" = ":Neotree current show buffers"; - "" = ":Neotree float git_status"; - }; - insert = { - # Move into different windows - "" = ''h''; - "" = ''j''; - "" = ''k''; - "" = ''l''; - }; -} -- cgit 1.4.1