(feat) use neoformat as the defalt format option (#715)

This commit is contained in:
Rafael 2021-07-05 20:01:19 +00:00 committed by GitHub
parent 9d399314d4
commit 71c5cb4f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 26 additions and 312 deletions

View file

@ -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")