Set formatting into autogrps

This commit is contained in:
flyingscorpio@arch-desktop 2020-05-30 14:49:50 +02:00
parent 420b1d9498
commit 93904f2fde

View file

@ -104,9 +104,6 @@ let NERDTreeIgnore=['^__pycache__$', '\.pyc', '\~$'] " ignore files in NERDTree
" in normal mode ,ne will open NERDTree
nmap <leader>ne :NERDTree<CR>
" F8 will run Black
nnoremap <F9> :Black<CR>
" let g:indentLine_char = '▏'
let g:indentLine_fileType = ['html', 'htmldjango']
@ -227,6 +224,8 @@ augroup configgroup
autocmd FileType ruby setlocal shiftwidth=2
autocmd FileType ruby setlocal softtabstop=2
autocmd FileType ruby setlocal commentstring=#\ %s
" F9 will run RustFmt
autocmd FileType rust nnoremap <F9> :RustFmt<CR>
autocmd FileType python setlocal commentstring=#\ %s
autocmd FileType python setlocal foldmethod=indent
autocmd FileType python setlocal colorcolumn=80
@ -234,6 +233,8 @@ augroup configgroup
autocmd FileType python let g:ycm_python_sys_path = []
autocmd FileType python let g:ycm_extra_conf_vim_data = ['g:ycm_python_interpreter_path', 'g:ycm_python_sys_path']
autocmd FileType python let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py'
" F9 will run Black
autocmd FileType python nnoremap <F9> :Black<CR>
autocmd FileType yaml setlocal foldmethod=indent
autocmd BufEnter *.cls setlocal filetype=java
autocmd BufEnter *zsh-theme setlocal filetype=zsh