Add black for python

This commit is contained in:
sfigato 2023-04-16 11:47:53 -03:00
parent 68bc243b11
commit 525b1cc9d7
Signed by: blallo
GPG Key ID: C530464EEDCF489A
3 changed files with 10 additions and 0 deletions

View File

@ -206,5 +206,8 @@ require('config.vgit')
-- coc
require('config.coc')
-- black
require('config.black')
-- structural search and replace
vim.keymap.set({ "n", "x" }, "<leader>sr", function() require("ssr").open() end)

6
lua/config/black.lua Normal file
View File

@ -0,0 +1,6 @@
vim.cmd([[
let g:black#settings = {
\ 'fast': 1,
\ 'line_length': 100
\}
]])

View File

@ -114,6 +114,7 @@ local function init()
-- Black, python formatter
use 'psf/black'
-- use 'averms/black-nvim'
-- Autotag completer
use 'windwp/nvim-ts-autotag'