From fd6f4b62fa9319078e19f5c4bfaeee0e88d58c4d Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 22 Dec 2023 23:37:05 +0100 Subject: [PATCH] [diagnosticls] Add autopep8 (disabled) --- lua/lsp/diagnosticls.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/lsp/diagnosticls.lua b/lua/lsp/diagnosticls.lua index 16a329e..a31ba63 100644 --- a/lua/lsp/diagnosticls.lua +++ b/lua/lsp/diagnosticls.lua @@ -128,6 +128,17 @@ return { zsh = { "shfmt", }, }, formatters = { + autopep8 = { + command = "autopep8", + args = { + "--aggressive", + "-" + }, + rootPatterns = {"Pipfile", "tox.ini", ".git"}, + isStdout = true, + isStderr = false, + ignoreExitCode = false, + }, black = { sourceName = "black", command = "black",