From cf307e35372a6845d638cb6bb56fa47c60e3ea26 Mon Sep 17 00:00:00 2001 From: Ivan Polyakov Date: Tue, 7 Jun 2022 20:59:18 +0300 Subject: [PATCH] vimtex --- .config/nvim/init.vim | 19 +++++++++++++++++++ .config/nvim/lua/plugins.lua | 6 ++++++ .stow-local-ignore | 1 + 3 files changed, 26 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 35fef36..cf8a373 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -35,3 +35,22 @@ inoremap u[s1z=`]au """ Plugins lua require('plugins') + +"" LaTeX +let g:tex_flavor='latex' +let g:vimtex_view_method='zathura' +let g:vimtex_quickfix_mode=0 +let g:vimtex_syntax_conceal = { + \ 'accents': 1, + \ 'cites': 1, + \ 'fancy': 1, + \ 'greek': 1, + \ 'math_bounds': 1, + \ 'math_delimiters': 1, + \ 'math_fracs': 1, + \ 'math_super_sub': 1, + \ 'math_symbols': 1, + \ 'sections': 1, + \ 'styles': 1, + \} +set conceallevel=2 diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 58652df..e853017 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -4,4 +4,10 @@ return require('packer').startup(function() use 'shaunsingh/nord.nvim' use 'preservim/nerdtree' + + use { + 'lervag/vimtex', + tag = 'v2.9', + ft = 'tex' + } end) diff --git a/.stow-local-ignore b/.stow-local-ignore index 7818631..8af881d 100644 --- a/.stow-local-ignore +++ b/.stow-local-ignore @@ -2,3 +2,4 @@ README.md COPYING .gitignore .git +.gitmodules