Merge branch 'main' of https://git.snaile.de/luca/dotfiles
This commit is contained in:
commit
bfb7c764f7
|
@ -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 = {
|
||||
|
|
|
@ -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" &&
|
||||
|
|
Loading…
Reference in New Issue