Add autocommand to remove trailing spaces

This commit is contained in:
Marcelo Jacobus 2024-12-16 10:55:53 -03:00
parent 1536537fc6
commit 8534d7b159

View file

@ -31,6 +31,13 @@ if lspconfig and lspconfig.solargraph and lspconfig.solargraph.setup then
})
end
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*",
callback = function()
vim.cmd("%s/\\s\\+$//e")
end,
})
vim.defer_fn(function()
local light_bg = "#394264"
local slightly_darker_bg = "#384160"