summaryrefslogtreecommitdiff
path: root/lua/lang/python.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lang/python.lua')
-rw-r--r--lua/lang/python.lua22
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()