first commit
This commit is contained in:
commit
15e643aa8e
41 changed files with 1623 additions and 0 deletions
15
lua/plugins/black.lua
Normal file
15
lua/plugins/black.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- Python formatter
|
||||
return {
|
||||
-- https://github.com/psf/black
|
||||
'psf/black',
|
||||
ft = 'python',
|
||||
config =function ()
|
||||
-- Automatically format file buffer when saving
|
||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||
pattern = "*.py",
|
||||
callback = function()
|
||||
vim.cmd("Black")
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue