Add autoformatting to python files.
This commit is contained in:
parent
f09966f21a
commit
70fc7c6cbc
1 changed files with 3 additions and 0 deletions
|
|
@ -2,3 +2,6 @@ require'lspconfig'.pyright.setup{
|
|||
cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"},
|
||||
}
|
||||
|
||||
-- Autoformat on save.
|
||||
vim.cmd("autocmd BufWritePre *.py call Black()")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue