blue
blue copied to clipboard
Vim Plugin for blue
I noticed that there doesn't seem to be a vim plugin for blue. I therefore cloned the plugin at psf/black
and extended it to run either "black" or "blue". Would that be something that you would like to include in your repository (as black does) or maybe something you would like to reference from the documentation?
FWIW, I think that would be pretty cool to try. I use vim as my main daily code editor.
The code is here. I use it with
Plug 'igordertigor/bnb.vim'
Let me know if it's useful (ideally in the issues).
Thanks! I'll give it a try.
Huh. I was cleaning up old tabs and came across this. At the time, I added
Plug 'igordertigor/bnb.vim'
to the plugin section of my .vimrc
I also added
let g:bnb_fixer = "blue"
Then I opened vim and ran :PlugUpdate
to pick up the plugin. I verified it was loaded in .vim/plugged
.
... and that is as far as I got. I couldn't figure out what command would cause it to reformat my open python file. I meant to come back and ask, but got side tracked (squirrel!) and totally forgot.
What do I do next?
Hi @rotten , apologies for the late reply. The readme says it:
"Instead of running Black, BlackUpgrade and BlackVersion, you would use Bnb, BnbUpgrade and BnbVersion.". So you would just type :Black
in vim.
By the way, I'm actually not using the anymore since I moved to nvim with a lua config, where I can use null-ls
for this.