Re-arrange neovim config

This commit is contained in:
2023-09-28 09:45:52 -04:00
parent 9acb92154a
commit 3896bab4fb
15 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
-- Remove all trailing whitespace on save
vim.api.nvim_exec([[
augroup TrimWhiteSpace
au!
autocmd BufWritePre * :%s/\s\+$//e
augroup END
]], false)
-- Prevent new line to also start with a comment
vim.api.nvim_exec([[
augroup NewLineComment
au!
au FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
augroup END
]], false)