diff options
Diffstat (limited to 'ftplugin/python.lua')
-rw-r--r-- | ftplugin/python.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ftplugin/python.lua b/ftplugin/python.lua index d6b98116..d2ade7e2 100644 --- a/ftplugin/python.lua +++ b/ftplugin/python.lua @@ -1,3 +1,18 @@ +O.formatters.filetype["python"] = { + function() + return { + exe = O.lang.python.formatter.exe, + args = O.lang.python.formatter.args, + stdin = not (O.lang.python.formatter.stdin ~= nil), + } + end, +} + +require("formatter.config").set_defaults { + logging = false, + filetype = O.formatters.filetype, +} + local python_arguments = {} -- TODO: replace with path argument |