From 11bfb7cb28cff833ebbf01943634877bc91fe821 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 15 Aug 2022 15:08:31 +0200 Subject: [PATCH 1/3] add readlink to detected texroot --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" && From 7229b6210a76d806c585e49300820b9c506a829b Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 15 Aug 2022 15:08:54 +0200 Subject: [PATCH 2/3] fix compiler keybind --- .config/lvim/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lvim/config.lua b/.config/lvim/config.lua index b90922c4..f271f275 100644 --- a/.config/lvim/config.lua +++ b/.config/lvim/config.lua @@ -229,7 +229,7 @@ lvim.builtin.which_key.mappings = { j = { "BufferLinePick", "Jump" }, f = { "Telescope buffers", "Find" }, b = { "BufferLineCyclePrev", "Previous" }, - c = { "w!!compiler %:p", "Compile" }, + c = { "w!!compiler \"%:p\"", "Compile" }, -- w = { "BufferWipeout", "Wipeout" }, -- TODO: implement this for bufferline e = { "BufferLinePickClose", From 17e08fc55186b71b4d0bed9d801dea3e70a08676 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 16 Aug 2022 10:59:29 +0200 Subject: [PATCH 3/3] remove keybinds to force correct vim usage --- .config/lvim/config.lua | 8 -------- 1 file changed, 8 deletions(-) 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 = {