summaryrefslogtreecommitdiff
path: root/ftplugin/python.lua
diff options
context:
space:
mode:
authorJacek Kiedrowski <[email protected]>2021-07-05 23:26:25 +0100
committerGitHub <[email protected]>2021-07-05 23:26:25 +0100
commit5b497747448b3946675f7361c9667bb0dc1da11a (patch)
treef9f08a2729f7f3134675114ac97e128a8be08ee7 /ftplugin/python.lua
parent64e544b56114f7b93a56814067caa28c83cfaec4 (diff)
parenta469c710bfc01f291df68dba40464caaa2b496da (diff)
Merge branch 'ChristianChiarulli:master' into master
Diffstat (limited to 'ftplugin/python.lua')
-rw-r--r--ftplugin/python.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/ftplugin/python.lua b/ftplugin/python.lua
index 62464397..a9b41648 100644
--- a/ftplugin/python.lua
+++ b/ftplugin/python.lua
@@ -20,12 +20,6 @@ if O.lang.python.isort then
table.insert(python_arguments, isort)
end
-if O.lang.python.formatter == "yapf" then
- table.insert(python_arguments, yapf)
-elseif O.lang.python.formatter == "black" then
- table.insert(python_arguments, black)
-end
-
require("lspconfig").efm.setup {
-- init_options = {initializationOptions},
cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
@@ -64,17 +58,6 @@ require("lspconfig").pyright.setup {
},
},
}
-if O.lang.python.autoformat then
- require("lv-utils").define_augroups {
- _python_autoformat = {
- {
- "BufWritePre",
- "*.py",
- "lua vim.lsp.buf.formatting_sync(nil, 1000)",
- },
- },
- }
-end
if O.plugin.debug.active and O.plugin.dap_install.active then
local dap_install = require("dap-install")