diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-07 20:51:22 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-07 20:52:36 +0200 |
commit | b12f18112cd57094c1846377477476743f755352 (patch) | |
tree | addc2e65dcb7b2111133e25d363cb699a0bf3d82 /hm | |
parent | nixvim: tweak completion options (diff) | |
download | nix-config-b12f18112cd57094c1846377477476743f755352.tar.gz nix-config-b12f18112cd57094c1846377477476743f755352.zip |
nixvim: disable highlighting when pressing <Esc>
Diffstat (limited to 'hm')
-rw-r--r-- | hm/nixvim/config.nix | 5 |
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 |