Default config reformat (#951)

This commit is contained in:
Abouzar Parvan 2021-07-15 05:44:25 +04:30 committed by GitHub
parent 7f11162bd8
commit f95e150518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 233 additions and 313 deletions

View file

@ -1,5 +1,27 @@
local M = {}
M.config = function()
O.lang.python = {
-- @usage can be flake8 or yapf
linter = "",
isort = false,
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
analysis = {
type_checking = "basic",
auto_search_paths = true,
use_library_code_types = true,
},
formatter = {
exe = "yapf",
args = {},
},
}
end
M.format = function()
O.formatters.filetype["python"] = {
function()