summary refs log tree commit diff stats
path: root/hm/nixvim
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-07 20:51:22 +0200
committerSilas Schöffel <sils@sils.li>2024-04-07 20:52:36 +0200
commitb12f18112cd57094c1846377477476743f755352 (patch)
treeaddc2e65dcb7b2111133e25d363cb699a0bf3d82 /hm/nixvim
parentnixvim: tweak completion options (diff)
downloadnix-config-b12f18112cd57094c1846377477476743f755352.tar.gz
nix-config-b12f18112cd57094c1846377477476743f755352.zip
nixvim: disable highlighting when pressing <Esc>
Diffstat (limited to '')
-rw-r--r--hm/nixvim/config.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hm/nixvim/config.nix b/hm/nixvim/config.nix
index e0e034b..99d003f 100644
--- a/hm/nixvim/config.nix
+++ b/hm/nixvim/config.nix
@@ -50,6 +50,11 @@ pkgs: {
       key = "<A-s>";
       action = ":Neotree float git_status<cr>";
     }
+    {
+      mode = ["n" "i"];
+      key = "<Esc>";
+      action = "<cmd>noh<CR><Esc>";
+    }
   ];
   extraPlugins = with pkgs.vimPlugins; [
     vim-airline-themes