From 8ad23b6b61e988ad8f7c720898cab28d01f15da0 Mon Sep 17 00:00:00 2001 From: _N0x <_n0x@noreply.git.n0x.io> Date: Mon, 21 Feb 2022 09:37:08 +0100 Subject: [PATCH 1/2] Disable Arrow keys to force myself to the Vim-Way of movement --- nvim/.config/nvim/lua/user/keymaps.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nvim/.config/nvim/lua/user/keymaps.lua b/nvim/.config/nvim/lua/user/keymaps.lua index 8536b70..80decdf 100644 --- a/nvim/.config/nvim/lua/user/keymaps.lua +++ b/nvim/.config/nvim/lua/user/keymaps.lua @@ -18,6 +18,17 @@ vim.g.maplocalleader = " " -- term_mode = "t", -- command_mode = "c", +-- Disable Arrow keys to force myself to the Vim-Way of movement -- +keymap("i", "", "", opts) +keymap("i", "", "", opts) +keymap("i", "", "", opts) +keymap("i", "", "", opts) + +keymap("n", "", "", opts) +keymap("n", "", "", opts) +keymap("n", "", "", opts) +keymap("n", "", "", opts) + -- Remap some language specific stuff -- keymap("n", "ü", "{", opts) keymap("n", "", "", opts) From c098312b3d365755bb4771dace4ec743a690fc36 Mon Sep 17 00:00:00 2001 From: _N0x <_n0x@noreply.git.n0x.io> Date: Mon, 21 Feb 2022 10:12:46 +0100 Subject: [PATCH 2/2] updated how PWD is displayed --- fish/.config/fish/functions/fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish index 3e7ccc7..7a33ebc 100644 --- a/fish/.config/fish/functions/fish_prompt.fish +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -1,4 +1,4 @@ -set fish_prompt_pwd_dir_length 1 +set fish_prompt_pwd_dir_length 0 set __fish_git_prompt_show_informative_status 1 # Fish command and parameter colors @@ -54,7 +54,7 @@ function fish_prompt _print_in_color "┏["$USER"@"(prompt_hostname)"]" blue # current working dir - _print_in_color " "$PWD $fish_color_cwd + _print_in_color " "(prompt_pwd) $fish_color_cwd __fish_git_prompt " (%s)"