From f95e150518e40f08a2cb31365e90895e31465d7e Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 15 Jul 2021 05:44:25 +0430 Subject: Default config reformat (#951) --- lua/lang/python.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lua/lang/python.lua') 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() -- cgit v1.2.3