Closed RMTT closed 2 years ago
Using efm with nvim built-in lsp:
require'lspconfig'.efm.setup { init_options = {documentFormatting = true}, settings = { rootMarkers = {'.git'}, languages = { lua = {{formatCommand = 'lua-format -i', formatStdin = true}}, python = {{formatCommand = 'yapf', formatStdin = true}} } } }
When i format such a main.py:
1. print(1, 2)
The result is abnormal:
1. 2. print(1, 2)
But it's ok when using yapf from terminal:
> yapf main.py print(1, 2)
Duplicate of https://github.com/mattn/efm-langserver/issues/181
Using efm with nvim built-in lsp:
When i format such a main.py:
The result is abnormal:
But it's ok when using yapf from terminal: