We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7833ff2 commit 9a6c804Copy full SHA for 9a6c804
ftplugin/tex.vim
@@ -0,0 +1,18 @@
1
+let g:tex_flavor = 'latex'
2
+let g:vimtex_view_method = 'zathura'
3
+" let g:vimtex_fold_enabled = 1
4
+let g:vimtex_quickfix_ignore_filters = [
5
+ \ 'LaTeX Font Warning',
6
+ \ 'Package fontspec Warning',
7
+ \]
8
+let g:tex_indent_items=1
9
+function CR()
10
+ if searchpair('\\begin{itemize}', '', '\\end{itemize}', '')
11
+ return "\r\\item "
12
+ endif
13
+ if searchpair('\\begin{enumerate}', '', '\\end{enumerate}', '')
14
15
16
+ return "\r"
17
+endfunction
18
+inoremap <expr><buffer> <CR> CR()
0 commit comments