vim: Add shortcut to disable black
This commit is contained in:
parent
7d052f062e
commit
148d5378e4
|
@ -1 +1,3 @@
|
|||
autocmd BufWritePre <buffer> execute ':silent Black'
|
||||
let b:black_disable = 0
|
||||
autocmd BufWritePre <buffer> if b:black_disable != 1 | execute 'silent Black' | endif
|
||||
map <Leader>b :let b:black_disable = (b:black_disable + 1) % 2<CR>
|
||||
|
|
Reference in a new issue