Use comma-t for Black

This commit is contained in:
Dan Buch 2023-01-10 11:46:55 -05:00
parent 6a8f59aa10
commit ebccb12337
Signed by: meatballhat
GPG Key ID: A12F782281063434

3
vimrc
View File

@ -45,7 +45,6 @@ au BufRead,BufNewFile .envrc setfiletype sh
au BufRead,BufNewFile Dockerfile* setfiletype dockerfile
au BufRead,BufNewFile Pipfile setfiletype toml
au BufRead,BufNewFile kubectl-edit-status-* setfiletype yaml
au BufWritePre *.py execute ':Black'
au BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <Leader>c <Plug>(go-coverage-toggle)
@ -70,6 +69,8 @@ map <leader>t :w<CR>
map <leader>- :nohl<CR>
map <leader>w :%s/ *$//<CR>
au FileType python nmap <leader>t :Black<CR>:w<CR>
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:airline_powerline_fonts = 1
let g:coc_global_extensions = ['coc-tsserver']