robin/ivy
my custom neovim config
git clone https://git.robinwobin.dev/robin/ivy
265ce29
main
1-- options ==================================================================== 2 3vim . bo . textwidth =80 4vim . bo . iskeyword =vim . bo . iskeyword .. ",_,*" 5 6-- commands =================================================================== 7 8vim . api . nvim_create_user_command ( "OpenPdf" , function ( opts ) 9local filepath =opts . nargs > 0 and opts . fargs [ 1 ] or vim . fn . bufname () 10filepath =vim . fs . abspath ( filepath ) 11if not filepath : match ( "%.typ$" ) then 12vim . notify (( "Not a typst file: %s" ): format ( filepath ), vim . log . levels . ERROR ) 13return 14end 15vim . ui . open ( filepath : gsub ( "%.typ$" , ".pdf" ), {} ) 16end , { 17nargs =1 , 18} )