nvim: typst/zathura better integrated

This commit is contained in:
dogeystamp 2023-07-27 14:41:36 -04:00
parent d9afec4380
commit a196a80ec2
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 12 additions and 5 deletions

View File

@ -85,6 +85,3 @@ 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
# 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

@ -29,6 +29,6 @@ function TypstWatch()
endfunc
nnoremap <silent><leader>fc :call TypstWatch()<cr>
nnoremap <silent><leader>fr :call setreg("+", expand("%:p:r") . ".pdf")<cr>:echo "Copied path."<cr>
nnoremap <silent><leader>fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &"<cr>
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}

View File

@ -1,6 +1,16 @@
# might break things, but more secure
set sandbox strict
set statusbar-home-tilde true
# make things fit better
set scroll-page-aware true
set adjust-open width
set recolor-darkcolor "#ffffff"
set recolor-lightcolor "#000000"
# set recolor true
set recolor true
set recolor-keephue true
set default-bg "#000000ff"
set index-bg "#000000"