diff options
author | Abouzar Parvan <[email protected]> | 2021-07-15 05:44:25 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 21:14:25 -0400 |
commit | f95e150518e40f08a2cb31365e90895e31465d7e (patch) | |
tree | eaae7a371124c4fb0a7778a79768a26be89d85a9 /lua/lang/python.lua | |
parent | 7f11162bd80b37af8ae67e41f10e962baacf8047 (diff) |
Default config reformat (#951)
Diffstat (limited to 'lua/lang/python.lua')
-rw-r--r-- | lua/lang/python.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/lang/python.lua b/lua/lang/python.lua index f1168fb9..3bab555a 100644 --- a/lua/lang/python.lua +++ b/lua/lang/python.lua @@ -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() |