diff --git a/init.lua b/init.lua index 82e70eb..3e54c55 100644 --- a/init.lua +++ b/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" }, "sr", function() require("ssr").open() end) diff --git a/lua/config/black.lua b/lua/config/black.lua new file mode 100644 index 0000000..dc90149 --- /dev/null +++ b/lua/config/black.lua @@ -0,0 +1,6 @@ +vim.cmd([[ + let g:black#settings = { + \ 'fast': 1, + \ 'line_length': 100 + \} +]]) diff --git a/lua/plugins.lua b/lua/plugins.lua index 8d970e6..15b3663 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -114,6 +114,7 @@ local function init() -- Black, python formatter use 'psf/black' + -- use 'averms/black-nvim' -- Autotag completer use 'windwp/nvim-ts-autotag'