racket-langserver
racket-langserver copied to clipboard
empty line added when `format()`
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.
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.
I think it's fixed now.