Browse Source

Setup synctex support

ansible
Micah Halter 4 months ago
parent
commit
3c95a13fd1
3 changed files with 7 additions and 0 deletions
  1. 1
    0
      CHANGELOG.md
  2. 4
    0
      neovim/.config/nvim/init.vim
  3. 2
    0
      zathura/.config/zathura/zathurarc

+ 1
- 0
CHANGELOG.md View File

@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9 9
 
10 10
 ### Added
11 11
 
12
+- Added synctex support to neovim and zathura
12 13
 - Added Markdown bibliography completion to `neovim`
13 14
 - Added LaTeX autocompletion to `neovim`
14 15
 - Added `Ctrl-Space` binding in `ranger` to open new terminal at directory

+ 4
- 0
neovim/.config/nvim/init.vim View File

@@ -160,6 +160,10 @@ let g:goyo_margin_top=2
160 160
 let g:goyo_margin_bottom=2
161 161
 nnoremap <silent> <leader>z :Goyo<CR>
162 162
 
163
+" vimtex
164
+let g:vimtex_view_method='zathura'
165
+let g:vimtex_compiler_progname='nvr'
166
+
163 167
 " table-mode
164 168
 let g:table_mode_corner='|'
165 169
 

+ 2
- 0
zathura/.config/zathura/zathurarc View File

@@ -1,3 +1,5 @@
1
+set synctex true
2
+set synctex-editor-command "nvr --remote-silent %{input} -c %{line}"
1 3
 set window-title-basename true
2 4
 set selection-clipboard clipboard
3 5
 set guioptions ''

Loading…
Cancel
Save