-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty line added when format()
#82
Comments
I’m looking into this problem since I have same stack, the weird thing is others language server has no this issue, only racket-langserver. |
It's good to know that you can reproduce the bug. So, it's not a configuration problem on my side. |
I'm having the same problem, too. In neovim. I haven't tested it anywhere else. |
jeapostrophe
pushed a commit
that referenced
this issue
Dec 12, 2022
I think it's fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure if this is an issue on the language server side or on the neovim side (https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/racket_langserver.lua).
I am using this language server with neovim. Everytime the code is formatted with
:lua vim.lsp.buf.format()
via lsp, an empty line is added to the end of the file. So if autoformat is enable on save, lots of empty lines will be appended.I tested it does not happen in VSCode.
I've no idea how to inspect/debug the problem.
The text was updated successfully, but these errors were encountered: