diff --git a/home/.config/nvim/ftplugin/python.vim b/home/.config/nvim/ftplugin/python.vim index d8248a4..888c1b6 100644 --- a/home/.config/nvim/ftplugin/python.vim +++ b/home/.config/nvim/ftplugin/python.vim @@ -1 +1,3 @@ -autocmd BufWritePre execute ':silent Black' +let b:black_disable = 0 +autocmd BufWritePre if b:black_disable != 1 | execute 'silent Black' | endif +map b :let b:black_disable = (b:black_disable + 1) % 2