blue icon indicating copy to clipboard operation
blue copied to clipboard

Vim Plugin for blue

Open igordertigor opened this issue 1 year ago • 5 comments

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?

igordertigor avatar May 26 '23 09:05 igordertigor

FWIW, I think that would be pretty cool to try. I use vim as my main daily code editor.

rotten avatar Jun 28 '23 02:06 rotten

The code is here. I use it with

Plug 'igordertigor/bnb.vim'

Let me know if it's useful (ideally in the issues).

igordertigor avatar Jun 28 '23 09:06 igordertigor

Thanks! I'll give it a try.

rotten avatar Jun 28 '23 13:06 rotten

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?

rotten avatar Nov 21 '23 19:11 rotten

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.

igordertigor avatar Mar 11 '24 10:03 igordertigor