1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 11:24:55 +02:00
dotfiles/nvim/lua/config/autocmd.lua

6 lines
174 B
Lua

local autocmd = vim.api.nvim_create_autocmd
-- Remove all trailing whitespaces on save
autocmd('BufWritePre', {
command = [[:exe 'norm m`' | %s/\s\+$//eg | norm ``]]
})