Ansible_workstation/files/dotfiles/vim/config/plugins.vim

89 lines
2.4 KiB
VimL
Raw Normal View History

2020-03-30 17:52:52 +00:00
" lightline -> no need showmod
set noshowmode
let g:lightline = {
\ 'colorscheme': 'selenized_dark',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'FugitiveHead'
\ },
2020-03-30 17:52:52 +00:00
\ }
2018-08-23 14:41:22 +00:00
" Supertab
let g:SuperTabDefaultCompletionType = "context"
" Ultisnips
let g:ultisnips_python_style='sphinx'
let g:UltiSnipsEditSplit='vertical'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
" let g:UltiSnipsExpandTrigger="tab"
let g:UltiSnipsExpandTrigger="<c-k>"
2020-04-20 07:14:46 +00:00
let g:UltiSnipsJumpForwardTrigger="<c-k>"
let g:UltiSnipsJumpBackwardTrigger="<c-j>"
2018-08-23 14:41:22 +00:00
" Airline
let g:airline_powerline_fonts = 1
let g:tmuxline_powerline_separators = 0
" Nerdtree
let NERDTreeIgnore = ['.pyc$']
"autocmd VimEnter * NERDTree
" Vim-notes
let g:notes_directories = ['~/Documents/Notes']
let g:notes_suffix = '.md'
" Ale
let g:ale_sign_column_always = 1
let g:ale_sign_error = '⚑'
let g:ale_sign_warning = '⚐'
" fzf
" Search and switch buffers
nmap <leader>b :Buffers<cr>
" Find files by name under the current directory
2020-05-06 20:00:56 +00:00
nmap <leader>f :GFiles<cr>
2018-08-23 14:41:22 +00:00
" Find files by name under the home directory
nmap <leader>h :Files ~/<cr>
" Search content in the current file
" nmap <leader>l :BLines<cr>
" Search content in the current file and in files under the current directory
" nmap <leader>g :Ag<cr>
" IndentLine
let g:indentLine_fileTypeExclude = ['tex']
" let g:indentLine_concealcursor = ''
" let g:indentLine_conceallevel = 1
"
" Vim-polyglot
" let g:LatexBox_no_mappings = 1
let g:polyglot_disabled = ["latex"]
" Vimtex
let g:vimtex_compiler_latexmk = {
\ 'backend' : 'jobs',
\ 'background' : 1,
\ 'build_dir' : '',
\ 'callback' : 0,
\ 'continuous' : 1,
\ 'options' : [
\ '-pdf',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ '-silent',
\ '-shell-escape',
\ ],
\}
let g:vimtex_view_method = 'zathura'
2018-08-23 14:41:22 +00:00
" Les fichiers sty et cls sont vus comme des fichiers tex
autocmd BufRead,BufNewFile *.{sty,cls} setlocal syntax=tex
autocmd FileType latex unmap <leader>ll
autocmd FileType latex nmap <leader>ll <plug>(vimtex-compile)