summaryrefslogtreecommitdiff
path: root/ftplugin/python.lua
diff options
context:
space:
mode:
authorRafael <[email protected]>2021-07-05 20:01:19 +0000
committerGitHub <[email protected]>2021-07-05 16:01:19 -0400
commit71c5cb4f0be89d3a175e99b0c2ebc5e55178e8a9 (patch)
tree941ed16b7e2f84ec45ce9b2c4a3d6d638cf584a7 /ftplugin/python.lua
parent9d399314d4ef9b05df738dda016ea52ec2e85823 (diff)
(feat) use neoformat as the defalt format option (#715)
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")