🔧 Updated trailing white space remove

This commit is contained in:
z3rOR0ne 2024-08-12 13:18:56 -07:00
parent ba161b074d
commit 3a26aa2223

View file

@ -41,15 +41,10 @@ vim.opt.splitbelow = true
vim.opt.splitright = true vim.opt.splitright = true
-- Removes trailing spaces -- Removes trailing spaces
-- vim.cmd([[function TrimWhiteSpace() vim.api.nvim_create_autocmd({ "BufWritePre" }, {
-- %s/\s*$// pattern = { "*" },
-- '' command = [[%s/\s\+$//e]],
-- endfunction]]) })
-- Removes trailing spaces on save
-- vim.cmd([[autocmd FileWritePre * call TrimWhiteSpace()]])
-- vim.cmd([[autocmd FileAppendPre * call TrimWhiteSpace()]])
-- vim.cmd([[autocmd FilterWritePre * call TrimWhiteSpace()]])
-- vim.cmd([[autocmd BufWritePre * call TrimWhiteSpace()]])
-- formats on save -- formats on save
-- vim.cmd([[autocmd BufWritePre * silent! :Neoformat]]) -- vim.cmd([[autocmd BufWritePre * silent! :Neoformat]])