mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
use black to format python file
This commit is contained in:
parent
510a5501c5
commit
e23d4bb661
@ -12,3 +12,5 @@ set tabstop=4 " number of visual spaces per TAB
|
|||||||
set softtabstop=4 " number of spaces in tab when editing
|
set softtabstop=4 " number of spaces in tab when editing
|
||||||
set shiftwidth=4 " number of spaces to use for autoindent
|
set shiftwidth=4 " number of spaces to use for autoindent
|
||||||
set expandtab " expand tab to spaces so that tabs are spaces
|
set expandtab " expand tab to spaces so that tabs are spaces
|
||||||
|
|
||||||
|
nnoremap <buffer><silent> <space>f <cmd>silent !black %<CR>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user