Use comma-t for Black
This commit is contained in:
parent
6a8f59aa10
commit
ebccb12337
3
vimrc
3
vimrc
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user