Dot_Files/.config/nvim/lua/core/autocmds.lua

11 lines
188 B
Lua
Raw Normal View History

2022-05-11 21:22:25 -05:00
local M = {}
2022-06-02 20:29:48 -05:00
M.setup = function()
2022-05-11 21:22:25 -05:00
-- NOTE: Remove trailing whitespace on save
vim.api.nvim_create_autocmd('BufWritePre', {
command = '%s/\\s\\+$//e',
})
end
return M