From a3a3138a63849667d286a7eedd712ebe1646f313 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:09:03 +0900 Subject: modified core/keymaps.lua, modified plugins/goyo.lua, modified bin/compiler --- ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua | 2 +- ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/goyo.lua | 18 +++++++++--------- ar/.local/bin/compiler | 14 ++++++++------ 3 files changed, 18 insertions(+), 16 deletions(-) (limited to 'ar') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua index 162b71a..044b9cf 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua @@ -533,7 +533,7 @@ vim.api.nvim_set_keymap( ) vim.api.nvim_set_keymap( "n", - "ov", + "RR", ":!opout %", { noremap = true, silent = true, desc = "Docs viewer" } ) diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/goyo.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/goyo.lua index d78fe5e..86b9a03 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/goyo.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/goyo.lua @@ -10,15 +10,15 @@ return { vim.g.goyo_width = 80 vim.g.seoul256_background = 235 vim.cmd([[ - Goyo - set bg=light - set linebreak - set wrap - set textwidth=0 - set wrapmargin=0 - set background=dark - colorscheme seoul256 - ]]) + Goyo + set bg=light + set linebreak + set wrap + set textwidth=0 + set wrapmargin=0 + set background=dark + colorscheme seoul256 + ]]) vim.api.nvim_buf_set_keymap( 0, "n", diff --git a/ar/.local/bin/compiler b/ar/.local/bin/compiler index 32004c2..147dda9 100755 --- a/ar/.local/bin/compiler +++ b/ar/.local/bin/compiler @@ -27,7 +27,7 @@ textype() { errorfmt="-file-line-error" # ( sed 5q "$file" | grep -i -q 'xelatex' ) && command="xelatex" secdir="$(dirname "$dir")" - cd "$secdir" + cd "$secdir" || exit if [ -f "${secdir}/Notes.tex" ]; then echo "${secdir}/Notes.tex" $command $errorfmt --output-directory="$secdir" "${secdir}/Notes.tex" @@ -77,11 +77,13 @@ case "$file" in *\.java) javac "$file" && echo "${base##*/}" | xargs java ;; *\.js) node "$file" ;; *\.m) octave "$file" ;; -*\.md) [ -x "$(command -v lowdown)" ] && - lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf >"${base}.pdf" || - [ -x "$(command -v groffdown)" ] && - groffdown -i "${file}" | groff -T pdf >"${base}.pdf" || - pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}" ;; +*\.md) + { [ -x "$(command -v lowdown)" ] && [ -x "$(command -v groff)" ]; } && + lowdown --parse-no-intraemph "${file}" -Tms | groff -mpdfmark -ms -kept -T pdf >"${base}.pdf" || + { [ -x "$(command -v groffdown)" ] && [ -x "$(command -v groff)" ]; } && + groffdown -i "${file}" | groff -T pdf >"${base}.pdf" || + pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}" + ;; *\.me) groff -Gktes -b -w w -me -T ps "$file" | ps2pdf - >"$base".pdf ;; *\.mm) groff -Gktes -b -w w -mm -mpic -T ps "$file" | ps2pdf - >"$base".pdf ;; *\.mom) pdfroff -pktes -b -wall -mom -mpdfmark "$file" >"$base".pdf ;; -- cgit v1.2.3