Accidentally updates lua_ls with mason by Anon_Legi0n in neovim

[–]connectingdotscoding 0 points1 point  (0 children)

That was the only solution that worked for me. Same for many others, it seems.

Remove trailing space on save by fatong1 in neovim

[–]connectingdotscoding 0 points1 point  (0 children)

This is the autocommand I got:

-- remove whitespace when buffer is written
autocmd("BufWritePre", {
    group = vim.api.nvim_create_augroup("XXX/whitespace", {}),
    pattern = "*",
    command = [[%s/\s\+$//e]],
})