plugins: add vimtex and coc-vim-tex

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2021-02-21 17:32:32 +01:00
parent 73cab051e7
commit 40ea31f0b1
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Plug 'vim-pandoc/vim-pandoc-syntax' " Ma
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' } " Markdown preview Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' } " Markdown preview
Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' } " Helper for table in markdown Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' } " Helper for table in markdown
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } " Distraction free mode for writing Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } " Distraction free mode for writing
Plug 'lervag/vimtex' " Filetype and syntax plugin for LaTeX files
Plug 'dpelle/vim-Grammalecte' " French ortho/grammar spelling Plug 'dpelle/vim-Grammalecte' " French ortho/grammar spelling
Plug 'arcticicestudio/nord-vim' " Nord color scheme Plug 'arcticicestudio/nord-vim' " Nord color scheme
Plug 'vim-airline/vim-airline' " Fancy bottom line in vim/neovim Plug 'vim-airline/vim-airline' " Fancy bottom line in vim/neovim
@ -151,12 +152,17 @@ nnoremap <C-h> :call pandoc#formatting#UseHardWraps()
nnoremap <C-t> :call pandoc#formatting#ToggleAutoformat() nnoremap <C-t> :call pandoc#formatting#ToggleAutoformat()
let g:mkdp_filetypes = ['markdown', 'pandoc', 'pandoc.markdown'] let g:mkdp_filetypes = ['markdown', 'pandoc', 'pandoc.markdown']
" #########################################
" #########################################
" Linters (syntastic configuration) " Linters (syntastic configuration)
"
" SCSS linter " SCSS linter
let g:syntastic_scss_checkers = ['scss_lint'] let g:syntastic_scss_checkers = ['scss_lint']
" Python linters. I define this list mainly to avoid pylint which I can't " Python linters. I define this list mainly to avoid pylint which I can't
" manage to use correctly and is required on my main OS. " manage to use correctly and is required on my main OS.
let g:syntastic_python_checkers=['flake8', 'pep8', 'pycodestyle', 'pyflakes'] let g:syntastic_python_checkers=['flake8', 'pep8', 'pycodestyle', 'pyflakes']
" Copy pasting of the basic configuration recommended by syntastic " Copy pasting of the basic configuration recommended by syntastic
" https://github.com/vim-syntastic/syntastic#settings " https://github.com/vim-syntastic/syntastic#settings
" but without the statusline settings to improve comptability with airline. " but without the statusline settings to improve comptability with airline.
@ -232,7 +238,7 @@ function! s:show_documentation()
endfunction endfunction
" Install missing coc extensions " Install missing coc extensions
let g:coc_global_extensions = ['coc-html', 'coc-json', 'coc-css', 'coc-markdownlint', 'coc-git'] let g:coc_global_extensions = ['coc-html', 'coc-json', 'coc-css', 'coc-markdownlint', 'coc-git', 'coc-vimtex']
autocmd FileType scss setl iskeyword+=@-@ " Add @ to iskeyword option autocmd FileType scss setl iskeyword+=@-@ " Add @ to iskeyword option
let g:coc_filetype_map = { 'pandoc': 'markdown' } " Allow markdownlint to recognized pandoc filetype let g:coc_filetype_map = { 'pandoc': 'markdown' } " Allow markdownlint to recognized pandoc filetype