mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
Add autocommand to remove trailing spaces
This commit is contained in:
parent
1536537fc6
commit
8534d7b159
1 changed files with 7 additions and 0 deletions
7
init.lua
7
init.lua
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue