diff options
| author | jdhao <jdhao@hotmail.com> | 2021-02-20 01:50:30 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-02-20 01:50:30 +0800 |
| commit | 0571ce406d02582d2606f7d8b6d9e5de463619d9 (patch) | |
| tree | ae7d293422e3d173cf576faf4a106db8398781cc /core/plugins.vim | |
| parent | c23846865816f0229caa9b47b0b13786eeb6f6b0 (diff) | |
Update vimtex settings
Diffstat (limited to 'core/plugins.vim')
| -rw-r--r-- | core/plugins.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index 4bb5961..ddb7dac 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -802,7 +802,6 @@ if ( g:is_win || g:is_mac ) && executable('latex') let g:vimtex_view_general_options = '-reuse-instance -forward-search @tex @line @pdf' endif - " The following code is adapted from https://gist.github.com/skulumani/7ea00478c63193a832a6d3f2e661a536. if g:is_mac " let g:vimtex_view_method = "skim" let g:vimtex_view_general_viewer = '/Applications/Skim.app/Contents/SharedSupport/displayline' @@ -811,8 +810,14 @@ if ( g:is_win || g:is_mac ) && executable('latex') augroup vimtex_mac autocmd! autocmd User VimtexEventCompileSuccess call UpdateSkim() + autocmd FileType tex call SetServerName() augroup END + function! SetServerName() + call system('echo ' . v:servername . ' > /tmp/curvimserver') + endfunction + + " The following code is adapted from https://gist.github.com/skulumani/7ea00478c63193a832a6d3f2e661a536. function! UpdateSkim() abort let l:out = b:vimtex.out() let l:src_file_path = expand('%:p') |
