Add black for python
This commit is contained in:
parent
68bc243b11
commit
525b1cc9d7
3
init.lua
3
init.lua
|
@ -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
6
lua/config/black.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
vim.cmd([[
|
||||
let g:black#settings = {
|
||||
\ 'fast': 1,
|
||||
\ 'line_length': 100
|
||||
\}
|
||||
]])
|
|
@ -114,6 +114,7 @@ local function init()
|
|||
|
||||
-- Black, python formatter
|
||||
use 'psf/black'
|
||||
-- use 'averms/black-nvim'
|
||||
|
||||
-- Autotag completer
|
||||
use 'windwp/nvim-ts-autotag'
|
||||
|
|
Loading…
Reference in New Issue
Block a user