diff --git a/home/modules/tui/neovim/plugins/better-escape.nix b/home/modules/tui/neovim/plugins/better-escape.nix new file mode 100644 index 0000000..07cf6b3 --- /dev/null +++ b/home/modules/tui/neovim/plugins/better-escape.nix @@ -0,0 +1,41 @@ +{ ... }: { + programs.nixvim.plugins.better-escape = { + enable = true; + settings = { + default_mappings = true; + mappings = { + c = { + k = { + j = ""; + k = ""; + }; + }; + i = { + k = { + j = ""; + k = ""; + }; + }; + s = { + k = { + j = ""; + k = ""; + }; + }; + t = { + k = { + j = ""; + k = ""; + }; + }; + v = { + k = { + j = ""; + k = ""; + }; + }; + }; + }; + }; + +} diff --git a/home/modules/tui/neovim/plugins/default.nix b/home/modules/tui/neovim/plugins/default.nix index 9cc11a6..55ad271 100644 --- a/home/modules/tui/neovim/plugins/default.nix +++ b/home/modules/tui/neovim/plugins/default.nix @@ -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 ];