vim.o.textwidth = 100 -- remove white spaces at end of line vim.api.nvim_create_autocmd({'BufWritePre'}, {command = '%s;\\s\\+$;;e'})