nvim: typst/zathura better integrated
This commit is contained in:
parent
d9afec4380
commit
a196a80ec2
@ -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
|
||||
|
@ -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 = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user