1
0
Fork 0
This commit is contained in:
Luca Bilke 2022-08-16 22:07:57 +02:00
commit bfb7c764f7
2 changed files with 1 additions and 9 deletions

View File

@ -184,10 +184,6 @@ lvim.keys.insert_mode = {
lvim.keys.normal_mode = {
["<c-s>"] = ":w<CR>",
["<c-q>"] = ":lua Custom_Close()<CR>",
["<C-l>"] = "W",
["<C-h>"] = "gE",
["<C-k>"] = "<C-U>",
["<C-j>"] = "<C-D>",
}
lvim.keys.term_mode = {
}
@ -196,16 +192,12 @@ lvim.keys.visual_mode = {
["<c-q>"] = "<ESC>:lua Custom_Close()<CR>",
["<"] = "<gv",
[">"] = ">gv",
["<C-k>"] = "<C-U>",
["<C-j>"] = "<C-D>",
}
lvim.keys.visual_block_mode = {
["<c-s>"] = "<ESC>:w<CR>",
["<c-q>"] = "<ESC>:lua Custom_Close()<CR>",
["K"] = ":move '<-2<CR>gv-gv",
["J"] = ":move '>+1<CR>gv-gv",
["<S-Up>"] = "<C-U>",
["<S-Down>"] = "<C-D>",
}
lvim.builtin.which_key.mappings = {

View File

@ -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" &&