diff --git a/.config/lvim/config.lua b/.config/lvim/config.lua index 89a77cbc..f426c682 100644 --- a/.config/lvim/config.lua +++ b/.config/lvim/config.lua @@ -184,10 +184,6 @@ lvim.keys.insert_mode = { lvim.keys.normal_mode = { [""] = ":w", [""] = ":lua Custom_Close()", - [""] = "W", - [""] = "gE", - [""] = "", - [""] = "", } lvim.keys.term_mode = { } @@ -196,16 +192,12 @@ lvim.keys.visual_mode = { [""] = ":lua Custom_Close()", ["<"] = ""] = ">gv", - [""] = "", - [""] = "", } lvim.keys.visual_block_mode = { [""] = ":w", [""] = ":lua Custom_Close()", ["K"] = ":move '<-2gv-gv", ["J"] = ":move '>+1gv-gv", - [""] = "", - [""] = "", } lvim.builtin.which_key.mappings = { diff --git a/.local/bin/compiler b/.local/bin/compiler index 4092306e..9127087d 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -18,7 +18,7 @@ cd "$dir" || exit 1 textype() { \ command="pdflatex" - texroot=$(grep -Poi "^ *% *\! *tex root *= *\w+(?:\.\w*)?" "$file" | cut -d "=" -f 2 | tr -d "[:blank:]") + texroot=$(readlink -f "$(grep -Poi "^ *% *\! *tex root *= *\w+(?:\.\w*)?" "$file" | cut -d "=" -f 2 | tr -d "[:blank:]")") [ -n "$texroot" ] && base=$texroot && echo "Compiling from TeX root: $texroot" ( head -n5 "$file" | grep -qi 'xelatex' ) && command="xelatex" $command --output-directory="$dir" "$base" &&