From 3380a7b98bd3cd5a7d4f81ed4b7e7ecedb4cd97f Mon Sep 17 00:00:00 2001 From: Oshgnacknak Date: Wed, 27 Apr 2022 19:11:12 +0200 Subject: [PATCH] Add latex mode --- _config/nvim/init.vim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/_config/nvim/init.vim b/_config/nvim/init.vim index cbe2f15..b8fcf5e 100644 --- a/_config/nvim/init.vim +++ b/_config/nvim/init.vim @@ -15,8 +15,9 @@ Plug 'mg979/vim-visual-multi' " Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } " Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } Plug 'luochen1990/rainbow' -" Plug 'wlangstroth/vim-racket' +Plug 'wlangstroth/vim-racket' Plug 'sirver/ultisnips' +Plug 'lervag/vimtex' call plug#end() set completeopt-=preview @@ -29,8 +30,10 @@ function! s:insert_gates() normal! kk endfunction +let maplocalleader = "," let g:mapleader = ',' let g:VM_leader = ',' +let g:vimtex_view_method = 'zathura' let g:rainbow_active = 1 let g:syntastic_enable_racket_racket_checker = 1 let g:syntastic_cpp_compiler_options = '-std=c++20' @@ -75,6 +78,10 @@ autocmd Filetype tex,markdown,mail setlocal linebreak spell spelllang=de autocmd BufNewFile *.{h,hpp} call insert_gates() autocmd BufNewFile,BufRead *.asm set filetype=nasm +" This is necessary for VimTeX to load properly. The "indent" is optional. +" Note that most plugin managers will do this automatically. +filetype plugin indent on + set spelllang=de,en set complete+=kspell @@ -85,4 +92,6 @@ noremap :terminal noremap :Buffers noremap :Git +nnoremap lt :call vimtex#fzf#run() + tnoremap