Commit 4bcae4cf authored by Asger Hautop Drewsen's avatar Asger Hautop Drewsen Committed by Łukasz Langa
Browse files

Use better default venv dir when using neovim (#937)

parent 51f1e0a8
Loading
Loading
Loading
Loading
+1 −1
Changes for README.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -725,7 +725,7 @@ Configuration:
* `g:black_fast` (defaults to `0`)
* `g:black_linelength` (defaults to `88`)
* `g:black_skip_string_normalization` (defaults to `0`)
* `g:black_virtualenv` (defaults to `~/.vim/black`)
* `g:black_virtualenv` (defaults to `~/.vim/black` or `~/.local/share/nvim/black`)

To install with [vim-plug](https://github.com/junegunn/vim-plug):

+4 −0
Changes for plugin/black.vim: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -24,8 +24,12 @@ endif

let g:load_black = "py1.0"
if !exists("g:black_virtualenv")
  if has("nvim")
    let g:black_virtualenv = "~/.local/share/nvim/black"
  else
    let g:black_virtualenv = "~/.vim/black"
  endif
endif
if !exists("g:black_fast")
  let g:black_fast = 0
endif