vim: Add vimtex and gutentags

This commit is contained in:
Simon Bruder 2020-05-13 14:48:27 +02:00
parent 05a5080b02
commit 6a60fa919f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 14 additions and 2 deletions

View file

@ -492,6 +492,7 @@ awful.rules.rules = {
{ properties = { tag = "" }, rule = { class = "Gnome-contact" } },
{ properties = { tag = "" }, rule = { class = "Gscan2pdf" } },
{ properties = { tag = "" }, rule = { class = "libreoffice" } },
{ properties = { tag = "" }, rule = { name = "org.pwmt.zathura" } },
{ properties = { tag = "" }, rule = { class = "Audacious" } },
{ properties = { tag = "" }, rule = { class = "Pavucontrol" } },
{ properties = { tag = "" }, rule = { class = "Darktable" } },

View file

@ -6,6 +6,9 @@ call plug#begin('~/.vim/plugged')
" Features
Plug 'MarcWeber/vim-addon-local-vimrc'
Plug 'majutsushi/tagbar'
nmap <F8> :TagbarToggle<CR>
Plug 'ludovicchabant/vim-gutentags'
let g:gutentags_cache_dir='~/.cache/gutentags'
" Syntax highlighting/Language support
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
@ -16,6 +19,12 @@ Plug 'mechatroner/rainbow_csv'
Plug 'posva/vim-vue', { 'for': 'vue' }
Plug 'sirtaj/vim-openscad', { 'for': 'openscad' }
Plug 'lervag/vimtex', { 'for': 'tex' }
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
set conceallevel=1
let g:tex_conceal='abdmg'
" Color schemes
Plug 'altercation/vim-colors-solarized'
call plug#end()
@ -67,5 +76,7 @@ if has("gui_running")
set guifont=Terminess\ Powerline
endif
" Tagbar
nmap <F8> :TagbarToggle<CR>
" Start clientserver (from vimtex.txt)
if empty(v:servername) && exists('*remote_startserver')
call remote_startserver('VIM')
endif