From dce4b244758d8f46ce3c6684d707ac5cd09dd41b Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Wed, 28 Aug 2024 18:22:53 +0200 Subject: [PATCH] fix vim mode indicator not working --- home-manager/shell.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/home-manager/shell.nix b/home-manager/shell.nix index 45fdf89..baa2001 100644 --- a/home-manager/shell.nix +++ b/home-manager/shell.nix @@ -13,12 +13,6 @@ }; envExtra = '' PROMPT=$'%B%n%b@%B%m%b: %~\nλ ' - KEYTIMEOUT=1 - MODE_INDICATOR_VICMD='%K{10}%F{8}%B NORMAL %k%f%b' - MODE_INDICATOR_REPLACE='%K{9}%F{8}%B REPLACE %k%f%b' - MODE_INDICATOR_SEARCH='%K{13}%F{8}%B SEARCH %k%f%b' - MODE_INDICATOR_VISUAL='%K{12}%F{8}%B VISUAL %k%f%b' - MODE_INDICATOR_VLINE='%K{12}%F{8}%B V-LINE %k%f%b' export BROWSER=firefox export XINITRC="${common.homeDir}/bin/xinitrc" export XAUTHORITY="${common.homeDir}/.local/share/Xauthority" @@ -56,6 +50,13 @@ shell() { nix-subcommand "shell" "$@" } run() { nix-subcommand "run" "$@" } build() { nix-subcommand "build" "$@" } + + KEYTIMEOUT=1 + MODE_INDICATOR_VICMD='%K{10}%F{8}%B NORMAL %k%f%b' + MODE_INDICATOR_REPLACE='%K{9}%F{8}%B REPLACE %k%f%b' + MODE_INDICATOR_SEARCH='%K{13}%F{8}%B SEARCH %k%f%b' + MODE_INDICATOR_VISUAL='%K{12}%F{8}%B VISUAL %k%f%b' + MODE_INDICATOR_VLINE='%K{12}%F{8}%B V-LINE %k%f%b' ''; plugins = [ {