Making a new line in the end of a buffer makes clangd fail. https://github.com/DanielViberg/lsp/blob/eb2305dd1695bf028003c0f6f82080dc8d186385/lib/Features/DocumentSync.vim#L156 Set to 1 and the issue is resolved, but breaks other servers.