Compare commits

..

2 Commits

Author SHA1 Message Date
ae32f8199e
nvim: improve typst experience 2023-07-18 16:39:18 -04:00
7313653341
programs: added progress 2023-07-17 18:04:47 -04:00
3 changed files with 7 additions and 3 deletions

View File

@ -43,6 +43,7 @@ pipewire-pulse
#
# utility
#
progress
speedtest-cli
obs-studio
dosfstools

View File

@ -85,5 +85,6 @@ function prob_cpp; echo $EDITOR src/(basename (xsel -b)).cpp; end
abbr -a cpp --function prob_cpp
function prob_py; echo $EDITOR src/(basename (xsel -b)).py; end
abbr -a py --function prob_py
function prob_pdf; echo zathura (basename (xsel -b)).pdf; end
# in .config/nvim/typst.vim there is a bind that copies the path
function prob_pdf; echo zathura (xsel -b); end
abbr -a pdf --function prob_pdf

View File

@ -23,10 +23,12 @@ nnoremap <silent><leader>fs :call ScreenshotFig()<cr>
" compile typst doc on write
function TypstWatch()
vsp
vertical resize 50
exec 'terminal ' .. 'typst watch ' .. expand("%:t")
vertical resize 20
exec 'terminal ' .. 'typst watch ' .. expand("%:")
exec "norm \<c-w>h"
endfunc
nnoremap <silent><leader>fc :call TypstWatch()<cr>
nnoremap <silent><leader>fr :call setreg("+", expand("%:p:r") . ".pdf")<cr>:echo "Copied path."<cr>
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}