mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-19 10:15:01 +02:00
(feat) use neoformat as the defalt format option (#715)
This commit is contained in:
parent
9d399314d4
commit
71c5cb4f0b
18 changed files with 26 additions and 312 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue