nvim/lua/lsp/efm.lua

16 lines
378 B
Lua

-- 部分补全代码不支持autoformat 需使用efm自动补全
-- https://github.com/mattn/efm-langserver
return {
init_options = {documentFormatting = true},
filetypes = {'python'},
settings = {
rootMarkers = {".git/"},
languages = {
python = {
-- pip install yapf
{formatCommand = "yapf --quiet", formatStdin = true}
}
}
}
}