neovim: make better-escape better

This commit is contained in:
John Bowdre 2025-01-02 21:08:47 -06:00
parent 69100ba2a5
commit cf36f563b5
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo
2 changed files with 41 additions and 4 deletions

View file

@ -0,0 +1,41 @@
{ ... }: {
programs.nixvim.plugins.better-escape = {
enable = true;
settings = {
default_mappings = true;
mappings = {
c = {
k = {
j = "<Esc>";
k = "<Esc>";
};
};
i = {
k = {
j = "<Esc>";
k = "<Esc>";
};
};
s = {
k = {
j = "<Esc>";
k = "<Esc>";
};
};
t = {
k = {
j = "<Esc>";
k = "<Esc>";
};
};
v = {
k = {
j = "<Esc>";
k = "<Esc>";
};
};
};
};
};
}

View file

@ -30,15 +30,11 @@
plugins = {
web-devicons.enable = true;
nvim-autopairs.enable = true;
nvim-colorizer = {
enable = true;
userDefaultOptions.names = false;
};
better-escape.enable = true;
};
extraPlugins = with pkgs.vimPlugins; [ salt-vim ];